From owner-freebsd-questions Sun Nov 12 18:36:30 2000 Delivered-To: freebsd-questions@freebsd.org Received: from athserv.otenet.gr (athserv.otenet.gr [195.170.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 9021F37B479 for ; Sun, 12 Nov 2000 18:36:26 -0800 (PST) Received: from hades.hell.gr (patr530-b100.otenet.gr [195.167.121.228]) by athserv.otenet.gr (8.10.1/8.10.1) with ESMTP id eAD2X2d21337; Mon, 13 Nov 2000 04:33:02 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id eAD2Y5d17482; Mon, 13 Nov 2000 04:34:05 +0200 (EET) Date: Mon, 13 Nov 2000 04:34:04 +0200 From: Giorgos Keramidas To: Tommy Forrest - KE4PYM Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: What is "["? Message-ID: <20001113043404.A17448@hades.hell.gr> References: <200011130004.SAA06022@mailbox.mcs.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200011130004.SAA06022@mailbox.mcs.net>; from tforrest@mcs.net on Sun, Nov 12, 2000 at 07:03:21PM -0500 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Nov 12, 2000 at 07:03:21PM -0500, Tommy Forrest - KE4PYM wrote: > Rooting around (no pun intended) my 4.0 system today I happened upon > a file called "[" in /bin. Not knowing what this file was I deleted > it. % ls -Fli /bin/test /bin/[ 14425 -r-xr-xr-x 2 root wheel 48856 Oct 18 02:18 /bin/[* 14425 -r-xr-xr-x 2 root wheel 48856 Oct 18 02:18 /bin/test* it's a hard link to the /bin/test utility, actually. You need this since a lot of the /etc/rc.* scripts use the shell-contruct: if [ condition ]; then ... code ... fi > Rule number one: Dont delete that in which you do not know. Rename > it. Better yet. *Don't* touch it! - giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message