RPM Community Forums

Mailing List Message of <popt-devel>

RE: Allow equal after a short option

From: Wichmann, Mats D <mats.d.wichmann@intel.com>
Date: Sun 09 Mar 2008 - 16:37:11 CET
Message-ID: <3F62CBEE02D6404E98C65934617EB58203ED07B8@fmsmsx414.amr.corp.intel.com>

> [jbj@wellfleet popt]$ /bin/echo --foo --bar
> --bar
> [jbj@wellfleet popt]$ /bin/echo -- --foo --bar
> --foo --bar

> Heh, I believe the answer starts to become clearer:
> The echo(1) from Fedora coreutils-6.10-4.fc9.i386 dares to be
> The root cause is what I needed to understand. Thanks for the

That is not cool (swallowing the first long option), especially
since the echo built in to bash continues to work as it has.
I also observe this behavior on F8.

On the other hand, not emitting the -- seems reasonable, since
it generically has the meaning "this signals the end of the options".
(And no, that's not how it works anywhere else, including
bash and ksh's echo on F8).
Received on Sun Mar 9 18:40:01 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.