From owner-freebsd-current@FreeBSD.ORG Wed Jan 12 00:54:36 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52C1D16A4CE for ; Wed, 12 Jan 2005 00:54:36 +0000 (GMT) Received: from mail.mcneil.com (mcneil.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08B9043D31 for ; Wed, 12 Jan 2005 00:54:36 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 63EE6F27A6; Tue, 11 Jan 2005 16:54:35 -0800 (PST) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64556-10; Tue, 11 Jan 2005 16:54:34 -0800 (PST) Received: from mcneil.com (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id 6FB00F27A1; Tue, 11 Jan 2005 16:54:34 -0800 (PST) From: Sean McNeil To: Julian Elischer In-Reply-To: <41E47226.8050001@elischer.org> References: <41E47226.8050001@elischer.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-tv0lCrwrHrdz8oe0cldC" Date: Tue, 11 Jan 2005 16:54:34 -0800 Message-Id: <1105491274.67086.2.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at mcneil.com cc: FreeBSD Current Subject: Re: test(1) unexpected result (to me) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 00:54:36 -0000 --=-tv0lCrwrHrdz8oe0cldC Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2005-01-11 at 16:41 -0800, Julian Elischer wrote: > # ls -l /sys > lrwxrwxrwx 1 root wheel 11 Sep 4 22:03 /sys -> usr/src/sys > # if [ /sys -ef /usr/src/sys ] > > then > > echo same > > else > > echo no > > fi > no >=20 >=20 > I would have expected the result "same" >=20 > comments? By "same file" they mean each references the same inode. Since this is a symlink, the files do not refer to the same file. You can see that if it were a hard link the result would be "same" echoed. Cheers, Sean --=-tv0lCrwrHrdz8oe0cldC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB5HVKyQsGN30uGE4RArsUAJ9GGwiJyAVy1Nm8ol1fSzL31L2ShwCeOXVD aYRNG1m0RUS1kH3LqgE6RIE= =eJlX -----END PGP SIGNATURE----- --=-tv0lCrwrHrdz8oe0cldC--