On Jul 23, 2007, at 4:27 PM, Ralf S. Engelschall wrote:
I'll look at what is needed to make both --foo=bar and --foo bar
work with
popt alias/exec this evening.
This would be cool. It is rather confusing that one cannot use the
"--foo=bar" notation, especially as the native POPT options accept
them
just fine.
I just looked.
Handling a popt alias like --foo=bar has a few issues, but is likely
doable,
but non-trivial.
The hardest issue is where to scope "bar" if --foo expands to a set
of additional options,
some of which include the (bash analogue) "!#:+" next arg grabber.
Likely do same as bash does.
The most annoying issue will be drilling con->os->nextArg look aside
everywhere.
I'll try to remember to look down the road a bit. Meanwhile, use --
foo bar ...
73 de Jeff
______________________________________________________________________
RPM Package Manager http://rpm5.org
Developer Communication List rpm-devel@rpm5.org