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
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel