grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] --foo bar cmdline argument parsing support for grub-* script


From: Colin Watson
Subject: Re: [PATCH] --foo bar cmdline argument parsing support for grub-* scripts
Date: Tue, 9 Feb 2010 12:54:12 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Feb 09, 2010 at 01:43:33PM +0100, Grégoire Sutre wrote:
> 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.

But it doesn't support long options, so it is useless here.

-- 
Colin Watson                                       address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]