Subject: Re: "[: not found" messages on boot
To: Dave Huang <khym@bga.com>
From: Mike Ekholm <ekholm@visi.com>
List: port-mac68k
Date: 07/10/1997 17:45:17
On Thu, 10 Jul 1997, Dave Huang wrote:

> On Thu, 10 Jul 1997, Andrew Gibson wrote:
> > I'm a newbie at this so please forgive my ovbious ignorance. I am concerned
> > about two things in the messages displayed on boot.
> > 
> >    1. [: not found messages (which I don't think were there when I first
> >       installed NetBSD
> 
> That means that "/bin/[" somehow got deleted or renamed or something...
> (often, people do ls /bin and see this weird [ file and think it's some
> stray file that can be deleted -- but it's not :)
> 
> ln /bin/test /bin/[
> 
the '[' is an acctual commnd, a carbon copy of the test command. it makes
it sasear to to shell scripts:
if [ x -lt 5 ];then
   echo "x is less than 5"
fi

is the same as:
if ( test x -lt 5 );then
   echo "x is less than 5"
fi

the "[" looks better in programs, and is easear to type.
-Mike
--
           ekholm@visi.com | http://www.visi.com/~ekholm (now up!)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         --Quote missing do to design error, no memory avalable--
                	 --Now accepting new quotes!--