From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NepRJ-0005L8-7n for mharc-grub-devel@gnu.org; Tue, 09 Feb 2010 07:43:37 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NepRG-0005K7-Ic for grub-devel@gnu.org; Tue, 09 Feb 2010 07:43:34 -0500 Received: from [199.232.76.173] (port=35349 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NepRG-0005Ju-5W for grub-devel@gnu.org; Tue, 09 Feb 2010 07:43:34 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NepRB-0008Ge-CD for grub-devel@gnu.org; Tue, 09 Feb 2010 07:43:34 -0500 Received: from mail-fx0-f216.google.com ([209.85.220.216]:44706) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NepRB-0008GC-1B for grub-devel@gnu.org; Tue, 09 Feb 2010 07:43:29 -0500 Received: by fxm8 with SMTP id 8so6847127fxm.26 for ; Tue, 09 Feb 2010 04:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=IDJWpmwZFkHF9MRhCcFpd9SXnuNn+mTIPk+p8yqoMog=; b=FEkt6OISWjystGm0RS/R/jCP/xWfoKLpXEwT1Ufj+BSLZMWm/OHu/fRJ3hjdX3TBOB /xWxQrz/D9qRlcL4+WNwY0J6DwY0W6ays/WnusrkaHcM47j0JSqc9gegKI6xBfIoSfbF 56ELRjKEIiz3VLViYP+hla+SF+MFFWDb5LyxE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=HyNTaqg5RMdX7+/HtDYVa+VPO2fwnXsxvkj7jUp5Zv9eNxFe4qD8k8ScvM5toEmX+3 DVR+vfURd/hr+rGDheaHPJ2I+98mQ6dfg061wCArVfu6Ot6LU0vlY5EgiDJntHnlNo5t eJUPHUp5j8NOdB5VsxeShjDfVyGwR9pbCAqLQ= Received: by 10.223.2.149 with SMTP id 21mr3683751faj.49.1265719406146; Tue, 09 Feb 2010 04:43:26 -0800 (PST) Received: from ?147.210.129.1? (laptop-147-210-129-1.labri.fr [147.210.129.1]) by mx.google.com with ESMTPS id 16sm23078fxm.12.2010.02.09.04.43.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Feb 2010 04:43:25 -0800 (PST) Message-ID: <4B715875.5040706@gmail.com> Date: Tue, 09 Feb 2010 13:43:33 +0100 From: =?ISO-8859-1?Q?Gr=E9goire_Sutre?= User-Agent: Thunderbird 2.0.0.23 (X11/20091027) MIME-Version: 1.0 To: The development of GRUB 2 References: <20100207150256.GC4409@riva.ucam.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] --foo bar cmdline argument parsing support for grub-* scripts X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2010 12:43:34 -0000 BVK Chaitanya wrote: > I assume you are talking about /usr/bin/getopt (not libc getopt). > /usr/bin/getopt comes with util-linux package (in debian), and yes, I > too dont think it would be available on other platforms as bash or > coreutils does. You might want to use the POSIX shell built-in getopts instead of the getopt binary. http://www.opengroup.org/onlinepubs/9699919799/utilities/getopts.html This built-in is supported by bash, ksh, NetBSD sh, and surely many other shells. Best regards, Grégoire