From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 68.mail-out.ovh.net ([91.121.185.69]) by canuck.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1P4CDV-0003G2-Ki for barebox@lists.infradead.org; Fri, 08 Oct 2010 12:38:30 +0000 Date: Fri, 8 Oct 2010 14:36:27 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20101008123627.GC30252@game.jcrosoft.org> References: <1286540674-17174-1-git-send-email-s.hauer@pengutronix.de> <1286540674-17174-4-git-send-email-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1286540674-17174-4-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 3/3] hush: implement getopt builtin To: Sascha Hauer Cc: barebox@lists.infradead.org On 14:24 Fri 08 Oct , Sascha Hauer wrote: > Positional parameters are not nice, so implement a getopt > function. This has to be done as a builtin because otherwise > we have no access to the parents argc/argv. > > getopt works as expected, here is a little example: > > while getopt "hs:" OPT > do > if [ $OPT = h ]; then > echo "usage" > exit 1 > else > echo "scr: opt: $OPT optarg: $OPTARG" > fi > done > > Signed-off-by: Sascha Hauer how about make it optional? Best Regards, J. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox