Date: Sun, 08 Jul 2012 17:59:07 +0100 From: Vincent Hoffman <vince@unsane.co.uk> To: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> Cc: "FreeBSD-Questions@freebsd.org" <FreeBSD-Questions@freebsd.org> Subject: Re: for loops with /bin/sh on command line. Message-ID: <4FF9BC5B.2090400@unsane.co.uk> In-Reply-To: <alpine.BSF.2.00.1207081851120.20724@wojtek.tensor.gdynia.pl> References: <4FF9B99D.4010101@unsane.co.uk> <alpine.BSF.2.00.1207081851120.20724@wojtek.tensor.gdynia.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 >> 1 >> 2 >> 3 >> banshee# >> > 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. Thanks, Vince
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF9BC5B.2090400>