The getopt long thing breaks the tree.
Rich Felker
dalias at aerifal.cx
Wed May 31 15:14:32 UTC 2006
On Wed, May 31, 2006 at 04:32:12PM +0200, Bernhard Fischer wrote:
> dalias suggested that we implement our own minimal getopt() and
> getopt_long() replacement. I'm not too interrested in doing this myself,
> though. A SUSv3 compliant libc has to implement getopt() for us, and we
> can live without getopt_long via turning off CONFIG_GETOPT_LONG so i see
> no pressing need to get to this myself anytime soon.
BTW, normal getopt can get long options (in a sense) by including "-"
in the list of options passed to it. The semantics are a little odd
and not quite the same as GNU getopt, but there might be an efficient
way to do it..
Also GNU getopt's permutation nonsense will probably horribly mess up
this method even tho it's fully POSIX compliant. Yay for broken GNU
extensions!
Rich
More information about the busybox
mailing list