Vincent Hoffman
2012-07-08 16:47:25 UTC
I'm sure I'm being dim, but why cant I do a for loop on the command line
using /bin/sh ?
am I suffering from too much use of bash and as such shouldnt expect it
to work?
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
1
2
3
banshee#
Vince
using /bin/sh ?
am I suffering from too much use of bash and as such shouldnt expect it
to work?
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
1
2
3
banshee#
Vince