[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re[2]: Wierd file name?



Nugzar Nebieridze writes:
 > Yes, it is valid file name.
 > 
 > In any case it exists in FreeBSD too.
 > this file is useful for shell programming.
 > 
 > when you program in shell like
 > 
 > if [ $something != $something_other ]
 > 
 > then some shells execute "[" as a program that checks this epression.

Exactly :

Try to execute a csh script without this command present in your path,
it won't work very well ;-)
Maybye it should be a symbolic link to /usr/bin/test ?

#!/bin/csh
[ -d /bin ] && echo cool ;

-- 
Davy Gigan
System & Network Administration
University Of Caen (France)



Reply to: