Hi
This little script is giving me error: Syntax error at line xxx : `(' is not expected. Wgat did I miss?
RC=0
switch ( $RC )
case 0:
echo Done
breaksw
case -1:
echo not done
breaksw
default:
echo "Hello"
endsw
Hi
This little script is giving me error: Syntax error at line xxx : `(' is not expected. Wgat did I miss?
RC=0
switch ( $RC )
case 0:
echo Done
breaksw
case -1:
echo not done
breaksw
default:
echo "Hello"
endsw
Hi.
set RC=0
[highlight=bash]
cat Test
#!/usr/bin/csh
set RC=0
switch ( $RC )
case 0:
echo Done
breaksw
case -1:
echo not done
breaksw
default:
echo "Hello"
endsw
./Test
Done
[/highlight]
Thanks ... set was the issue.