Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2000 04:34:04 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Tommy Forrest - KE4PYM <tforrest@mcs.net>
Cc:        "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: What is "["?
Message-ID:  <20001113043404.A17448@hades.hell.gr>
In-Reply-To: <200011130004.SAA06022@mailbox.mcs.net>; from tforrest@mcs.net on Sun, Nov 12, 2000 at 07:03:21PM -0500
References:  <Pine.SOL.4.10.10011121835160.23858-100000@galaga.gpcc.itd.umich.edu> <200011130004.SAA06022@mailbox.mcs.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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