RPM Community Forums

Mailing List Message of <popt-devel>

Re: Allow equal after a short option

From: Jeff Johnson <n3npq@mac.com>
Date: Sat 08 Mar 2008 - 21:28:06 CET
Message-Id: <79B4B6DA-66E9-45F5-B6CA-7EA3AB96D8AC@mac.com>

On Mar 8, 2008, at 12:56 PM, Wayne Davison wrote:

> 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.
>

Those tests were run from a freshly built CVS from HEAD. But
perhaps I've tricked myself somehow. Lemme study a bit while
merging in this patch.

Hmmm, I was seeing exactly the opposite, --echo-args was failing
until I added the "--" argument separator a couple of weeks ago.

73 de Jeff
Received on Sat Mar 8 21:28:11 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.