RPM Community Forums

Mailing List Message of <popt-devel>

Re: Allow equal after a short option

From: Jeff Johnson <n3npq@mac.com>
Date: Sun 09 Mar 2008 - 00:11:09 CET
Message-Id: <5BBAF8CE-337B-4248-B158-005623BC89AA@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.
>

Hmmm, we appear to have different behavior wrto echo. Your
patch changes testit.sh to include an explicit "--", which (when
I last fixed testit.sh like 3 weeks ago) does not appear in the
output I am (and was)  seeing.

I need a functional testit.sh, so I'm gonna wait for popt-1.14
release before wrestling further with the contextual problems
of --echo-args behavior. I have added the tests and the 1 liner
to have -c=foo functionality, just commented out and disabled for now.

73 de Jeff
Received on Sun Mar 9 00:11:15 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.