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: Grégoire Sutre
Subject: Re: [PATCH] --foo bar cmdline argument parsing support for grub-* scripts
Date: Tue, 09 Feb 2010 13:43:33 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20091027)

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




reply via email to

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