[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sh script Q
On Tue, May 18, 1999 at 08:09:40PM +0300, Vadim Vygonets wrote:
> Anyway, does anybody in this world use 'test' instead of '['?
[gaal@derain ~]$ ls -l /usr/bin/[ /usr/bin/test
lrwxrwxrwx 1 root root 4 Mar 26 00:50 /usr/bin/[ -> test
-rwxr-xr-x 1 root root 16856 Aug 5 1998 /usr/bin/test
.and on some systems they may be hard linked.
'test' and '[' are entirely equivalent.
Unless, of course, you were alluding to using the executable as
opposed to the buitin -- something you just MIGHT have to do if
your shell is broken but you have a GNU test somewhere (on a non
linux box, this is feasible)..
Shell programming. Blugh.
perl -le 'print "Just another \u$^X hacker,"'
gaal