On Wed, Dec 14, 2005 at 04:34:07PM +1300, Nick Rout wrote: > in bash, I thought it was something like: > > if [ test -f /path/to/blah ] ; then > > but I get: > > line 46: [: -f: binary operator expected
[EMAIL PROTECTED]:~$ if [ -f /etc/passwd ] ; then echo "si"; fi si [EMAIL PROTECTED]:~$ if test -f /etc/passwd; then echo "si"; fi si Hope it helps ! -- Matías Rollán <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
