From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 16:51:08 2012 Return-Path: Delivered-To: FreeBSD-Questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90407106566B for ; Sun, 8 Jul 2012 16:51:08 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id 32EB68FC0C for ; Sun, 8 Jul 2012 16:51:06 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q68GovPj020728; Sun, 8 Jul 2012 18:50:59 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q68Gos6w020725; Sun, 8 Jul 2012 18:50:56 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 8 Jul 2012 18:50:54 +0200 (CEST) From: Wojciech Puchar To: Vincent Hoffman In-Reply-To: <4FF9B99D.4010101@unsane.co.uk> Message-ID: References: <4FF9B99D.4010101@unsane.co.uk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Sun, 08 Jul 2012 18:51:00 +0200 (CEST) Cc: "FreeBSD-Questions@freebsd.org" Subject: Re: for loops with /bin/sh on command line. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2012 16:51:08 -0000 > 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" >