All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Grégoire Sutre" <gregoire.sutre@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] --foo bar cmdline argument parsing support for grub-* scripts
Date: Tue, 09 Feb 2010 13:43:33 +0100	[thread overview]
Message-ID: <4B715875.5040706@gmail.com> (raw)
In-Reply-To: <d019d53c1002080823y6577f2a3o265351bd186fa43c@mail.gmail.com>

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	other threads:[~2010-02-09 12:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-07  5:12 [PATCH] --foo bar cmdline argument parsing support for grub-* scripts BVK Chaitanya
2010-02-07 15:02 ` Colin Watson
2010-02-08 16:23   ` BVK Chaitanya
2010-02-09 12:43     ` Grégoire Sutre [this message]
2010-02-09 12:54       ` Colin Watson
2010-04-12 17:30         ` BVK Chaitanya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B715875.5040706@gmail.com \
    --to=gregoire.sutre@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.