From owner-freebsd-hackers Wed Apr 10 1:47:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from icomag.de (ns.icomag.de [195.227.115.162]) by hub.freebsd.org (Postfix) with ESMTP id DB48537B400 for ; Wed, 10 Apr 2002 01:47:23 -0700 (PDT) Received: from localhost (bgd@localhost) by icomag.de (8.11.3/8.11.3) with ESMTP id g3A8jPd80386; Wed, 10 Apr 2002 10:45:25 +0200 (CEST) (envelope-from bgd@icomag.de) Date: Wed, 10 Apr 2002 10:45:25 +0200 (CEST) From: Bogdan TARU X-X-Sender: To: "Rogier R. Mulhuijzen" , Terry Lambert , Subject: Re: 'rm' incompatibility with Posix.2 In-Reply-To: <5.1.0.14.0.20020410095652.01c67aa0@mail.drwilco.net> Message-ID: <20020410103608.F79910-100000@fw.cgn.icom> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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." Greetings, bogdan On Wed, 10 Apr 2002, Rogier R. Mulhuijzen wrote: > > > I have attached a patch for the 'rm' untility, which strips the trailing > >slash(es) from the path (according to Posix.2). But I think there are many > >other utilities which need to be patched (e.g. cp, mv). > > Can you point out how the behavior violates POSIX.2? > > Doc > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message