Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2000 12:00:16 -0600
From:      Kenneth Ingham <ingham@i-pi.com>
To:        Khairuddin Abdul Ghani <abdulgha@usc.edu>
Cc:        Brian <bmohler@maxim.net>, exec@virtualmystic.com, freebsd-questions@FreeBSD.ORG
Subject:   /bin/[ (was Re: mysterious shutdowns (cont.))
Message-ID:  <20000526120016.B26132@socrates.i-pi.com>
In-Reply-To: <009f01bfc731$4beea840$6f1f7d80@phoenix>; from abdulgha@usc.edu on Fri, May 26, 2000 at 09:41:52AM -0700
References:  <009f01bfc731$4beea840$6f1f7d80@phoenix>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 26, 2000 at 09:41:52AM -0700, Khairuddin Abdul Ghani wrote:
> Then I found this in /bin:
> 
> -r-xr-xr-x   2 root  wheel      49016 May 17 20:21 [
> 
> I doubt that should be there.. so I'm taking it off for the moment.

/bin/[ is a link to /bin/test so you can do stuff (in sh-like shells) like:

if [ "$a" -eq "$b" ]
then
    foo
else
    bar
fi

Removing it may break some shell scripts.

Kenneth


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000526120016.B26132>