RPM Community Forums

Mailing List Message of <popt-devel>

Re: Allow equal after a short option

From: Wayne Davison <wayned@samba.org>
Date: Sat 08 Mar 2008 - 18:56:30 CET
Message-ID: <20080308175630.GC14813@herod.dreamhost.com>
On Sat, Mar 08, 2008 at 12:10:52PM -0500, Jeff Johnson wrote:
> Test "test1 -2 foo" failed with: "arg1: 0 arg2:  rest: foo" != "arg1:  
> 0 arg2: foo"

I'm not seeing that error with the CVS version.  I do note that my prior
patch to fix the longArg pointer (e.g. "./test1 -2foo=bar") isn't there,
but even commenting out that fix doesn't get test 9 to fail for me.  I
did see failures for tests 19-23 due to the --echo-args macro now
outputting an extra "--" at the start.  The attached patch fixes this,
and also adds two new tests to check that the changed equal-handling
works right.

..wayne..


Received on Sat Mar 8 18:56:35 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.