From owner-freebsd-questions Sun Nov 12 17:30:35 2000 Delivered-To: freebsd-questions@freebsd.org Received: from 2711.dynacom.net (2711.dynacom.net [206.107.213.3]) by hub.freebsd.org (Postfix) with ESMTP id C2E8537B479 for ; Sun, 12 Nov 2000 17:30:32 -0800 (PST) Received: from urx.com (dsl1-160.dynacom.net [206.159.132.160]) by 2711.dynacom.net (Build 101 8.9.3/NT-8.9.3) with ESMTP id RAA07198; Sun, 12 Nov 2000 17:30:30 -0800 Message-ID: <3A0F4436.9F691215@urx.com> Date: Sun, 12 Nov 2000 17:30:30 -0800 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Tommy Forrest - KE4PYM Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: What is "["? References: <200011130004.SAA06022@mailbox.mcs.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. > > Rule number one: Dont delete that in which you do not know. Rename > it. My rule number one is much less forgiving. If you don't know what it is, don't touch it at all. > > Lesson learned. Soon after my network died. I rebooted the system. > Lots of bad things (tm) happened. Nothing would start up. So I > logged in and did a man [ and found it was a test utility. Then I > did a locate test |more Found /bin/test. Copied test to [ and > rebooted. Everything is happy. > > What, exactly, is "[". Why is it on my system as "["? ruby# ll test -r-xr-xr-x 2 root wheel 51112 Nov 10 16:51 test ruby# ll [ -r-xr-xr-x 2 root wheel 51112 Nov 10 16:51 [ You have been sent a reference to "man [" so that you can see how it is used. What I haven't seen is someone showing you that it is the same file with two names. Kent -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message