Date: Sun, 8 Jul 2012 18:50:54 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Vincent Hoffman <vince@unsane.co.uk> Cc: "FreeBSD-Questions@freebsd.org" <FreeBSD-Questions@freebsd.org> Subject: Re: for loops with /bin/sh on command line. Message-ID: <alpine.BSF.2.00.1207081850420.20724@wojtek.tensor.gdynia.pl> In-Reply-To: <4FF9B99D.4010101@unsane.co.uk> References: <4FF9B99D.4010101@unsane.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
> am I suffering from too much use of bash and as such shouldnt expect it > to work? > maybe. i actually use bash for script. > > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1207081850420.20724>