From owner-freebsd-hackers Wed Apr 10 4:10:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id E53DB37B429 for ; Wed, 10 Apr 2002 04:10:41 -0700 (PDT) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id g3ABAJ330553; Wed, 10 Apr 2002 13:10:19 +0200 (CEST) (envelope-from ticso@cicely9.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g3AB9v6e014140; Wed, 10 Apr 2002 13:09:59 +0200 (CEST)?g (envelope-from ticso@cicely9.cicely.de) Received: from cicely9.cicely.de (cicely9.cicely.de [10.1.1.11]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id g3AB9uX21896; Wed, 10 Apr 2002 13:09:56 +0200 (CEST) Received: (from ticso@localhost) by cicely9.cicely.de (8.11.6/8.11.6) id g3AB9tk01420; Wed, 10 Apr 2002 13:09:55 +0200 (CEST) (envelope-from ticso) Date: Wed, 10 Apr 2002 13:09:54 +0200 From: Bernd Walter To: Bogdan TARU Cc: "Rogier R. Mulhuijzen" , Terry Lambert , freebsd-hackers@FreeBSD.ORG Subject: Re: 'rm' incompatibility with Posix.2 Message-ID: <20020410110954.GF99407@cicely9.cicely.de> References: <5.1.0.14.0.20020410095652.01c67aa0@mail.drwilco.net> <20020410103608.F79910-100000@fw.cgn.icom> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020410103608.F79910-100000@fw.cgn.icom> User-Agent: Mutt/1.3.28i X-Operating-System: FreeBSD cicely9.cicely.de 5.0-CURRENT alpha Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Apr 10, 2002 at 10:45:25AM +0200, Bogdan TARU wrote: > > Dear Rogier & Terry, > > I didn't say the behaviour contradicts Posix.2. I just said that Posix.2 > specifies removal of the trailing slashes when doing directory operation. > Which, for example, freebsd 'rm' does not, which leads to a strange > behaviour. As I stated, I have tryied this on more than one other OS > (OpenBSD 2.9, 3.0, Linux, HP UX 10.20, Solaris 2.7, 2.8), and all yelded > the same result (different from the FreeBSD). > > Also, I quote from the FreeBSD man page of 'rm': > > "The rm utility removes symbolic links, not the files referenced by > the links." I can't see the point where it is wrong. You aren't referencing a link. And why should rm behave differently than e.g. ls? If I add a trailing '/' I would expect every command to do the same. Well if your are working on differenet systems you should add '/.' to be shure and forget about the '/' only case. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message