[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] --foo bar cmdline argument parsing support for grub-* script
Re: [PATCH] --foo bar cmdline argument parsing support for grub-* scripts
Tue, 9 Feb 2010 12:54:12 +0000
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.
> 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