From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G5L6b-0002Jh-L1 for garchives@archives.gentoo.org; Tue, 25 Jul 2006 11:29:42 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6PBRDIU020740; Tue, 25 Jul 2006 11:27:13 GMT Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6PBMrqO024529 for ; Tue, 25 Jul 2006 11:22:53 GMT Received: (qmail invoked by alias); 25 Jul 2006 11:22:53 -0000 Received: from L2458.l.pppool.de (EHLO hagen) [89.48.36.88] by mail.gmx.net (mp001) with SMTP; 25 Jul 2006 13:22:53 +0200 X-Authenticated: #27844442 Date: Tue, 25 Jul 2006 12:26:53 +0000 From: Hagen Soengen To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] strange [ file Message-Id: <20060725122653.c8877c2d.hagen_soengen@gmx.de> In-Reply-To: <44C5FA58.4070706@mid.message-center.info> References: <20060725110038.6b2ac3ae@lx-arnau.pic.es> <200607251117.37048.ext-dirk.heinrichs@nokia.com> <44C5FA58.4070706@mid.message-center.info> X-Mailer: Sylpheed version 2.2.5 (GTK+ 2.8.20; i386-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Y-GMX-Trusted: 0 X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k6PBMrqO024529 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k6PBRDJ1020740 X-Archives-Salt: 85e22de1-a0c7-46d2-b1a9-ecf7e1884312 X-Archives-Hash: 84ad9842156d0d1f88ca25b4e8512d0d On Tue, 25 Jul 2006 13:02:48 +0200 Alexander Skwar wrote: > Dirk Heinrichs wrote: > > Am Dienstag, 25. Juli 2006 11:00 schrieb ext Arnau Bria: > >=20 > >> I've seen a file named "[" in my /usr/bin ... > >> [...] > >> > >> does any one know what could it be?=BF > >=20 > > It's the [ from "if [ condition ]; then ...", a shortcut for /usr/bin= /test. >=20 > Nope, not correct. >=20 > [09:39:58 vz6tml@dewup-ww02:~] $ type [ > [ is a shell builtin > [13:01:25 vz6tml@dewup-ww02:~] $ type test > test is a shell builtin >=20 > And actually /usr/bin/[ and /usr/bin/test aren't even the same: >=20 > [13:01:56 vz6tml@dewup-ww02:~] $ ls -la /usr/bin/{[,test} > -rwxr-xr-x 1 root root 24852 27. Jun 09:34 /usr/bin/[ > -rwxr-xr-x 1 root root 22784 27. Jun 09:34 /usr/bin/test >=20 > I wonder where the differences are. I would've expected that test and [ > were hardlinks. # /usr/bin/[ /usr/bin/[: missing ']' # /usr/bin/test # You see? They cant be the same, because the closing "]" is needed by /usr= /bin[ and not by /usr/bin/test Hagen --=20 gentoo-user@gentoo.org mailing list