*BSD News Article 88742


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!spool.mu.edu!newshub.tc.umn.edu!mr.net!news.maxwell.syr.edu!news.mathworks.com!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!uunet!in1.uu.net!208.206.176.15!dimensional.com!nova.dimensional.com!not-for-mail
From: mfuhr@dimensional.com (Michael Fuhr)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Help: Deleted "["
Date: 5 Feb 1997 22:18:43 -0700
Organization: Dimensional Communications
Lines: 17
Message-ID: <5dbpjj$mmc@nova.dimensional.com>
References: <32f957d2.43727900@news>
NNTP-Posting-Host: nova.dimensional.com
X-Newsreader: NN version 6.5.1 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:35230

[cc to author]

wolstena@sfu.ca (Paul Wolstenholme) writes:

>I think this must be up there with the bone-head maneuver of the year.
>I accidently deleted a file call "[" and now I can't compile anything.
>Being a newbie and all, I need to know what this file does and what
>the best way to restore it.  

/bin/[ is a hard link to /bin/test; see the manpage for test(1) for
details.  You should be able to restore it thusly:

    ln /bin/test /bin/[

-- 
Michael Fuhr
http://www.dimensional.com/~mfuhr/