From owner-freebsd-hackers Wed Apr 10 8:21:42 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by hub.freebsd.org (Postfix) with ESMTP id 4DD5737B417 for ; Wed, 10 Apr 2002 08:21:38 -0700 (PDT) Received: from corto.lpt.ens.fr (corto.lpt.ens.fr [129.199.122.2]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id g3AFLaa23005 ; Wed, 10 Apr 2002 17:21:36 +0200 (CEST) Received: from (rsidd@localhost) by corto.lpt.ens.fr (8.9.3/jtpda-5.3.1) id RAA34032 ; Wed, 10 Apr 2002 17:21:23 +0200 (CEST) Date: Wed, 10 Apr 2002 17:21:23 +0200 From: Rahul Siddharthan To: Dag-Erling Smorgrav Cc: Bogdan TARU , hackers@freebsd.org Subject: Re: 'rm' incompatibility with Posix.2 Message-ID: <20020410172123.C26749@lpt.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: X-Operating-System: FreeBSD 3.4-STABLE i386 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 Dag-Erling Smorgrav wrote: > Bogdan TARU writes: > > On 10 Apr 2002, Dag-Erling Smorgrav wrote: > > > In my humble opinion, Solaris (and every other *nix) is broken in > > > this > > > respect, and *BSD is correct. > > Except for OpenBDS. No NetBDS machine available, maybe some of you > > could > > try it on one as well? > > I don't know of any "OpenBDS" or "NetBDS", but NetBSD has the same > semantics as FreeBSD: For ls, so do linux, HP-UX, and Digital Unix 4.0 -- I just checked. It does seem the more sensible and useful behaviour. However, without the -l flag the symlink is followed regardless of the trailing / From Digital Unix: rs> mkdir foo rs> mkdir foo/bar rs> ln -s foo baz rs> ls baz bar/ rs> ls baz/ bar/ rs> ls -l baz lrwxrwxrwx 1 rsidd users 3 Apr 10 20:43 baz@ -> foo/ rs> ls -l baz/ total 1 drwxr-xr-x 2 rsidd users 512 Apr 10 20:43 bar/ With rm baz/ it's different: linux doesn't follow the symlink, it removes "baz". Digital and HP-UX follow the symlink. All three remove the symlink if specified without the trailing / - Rahul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message