for loops with /bin/sh on command line.
vince at unsane.co.uk
Sun Jul 8 16:59:09 UTC 2012
On 08/07/2012 17:51, Wojciech Puchar wrote:
>> banshee# for foo in 1 2 3 ; do echo $foo ; done
>> for: Command not found.
>> foo: Undefined variable.
>> banshee# echo 'for foo in 1 2 3; do echo $foo ; done' > bahh.sh
>> banshee# sh bahh.sh
> echo $SHELL
> is it /bin/sh really?
Doh, yes that was it. Cant believe I forgot to check. I was running csh
for no good reason.
More information about the freebsd-questions