Expressions in csh IF commands
Kenneth R. Ballou
ballou at brahms.Berkeley.EDU
Fri Jan 23 18:06:07 AEST 1987
In article <15 at aber-cs.UUCP> dap at aber-cs.UUCP (Dave Price) writes:
>Can someone please tell me what is wrong with the following
>apparently faulty IF in csh.
>
> if ( \{ /bin/true \} ) echo "hello"
>
>man csh expression description paragraph says you
>can use commands in {} however all the above
>produces is IF syntax error.....
The correct syntax is
if { /bin/true } echo "hello"
The parentheses are unnecessary.
--------
Kenneth R. Ballou ARPA: ballou at brahms.berkeley.edu
Department of Mathematics UUCP: ...!ucbvax!brahms!ballou
University of California
Berkeley, California 94720
More information about the Comp.unix.wizards
mailing list