RPM Community Forums

Mailing List Message of <popt-devel>

Re: Allow equal after a short option

From: Wayne Davison <wayned@samba.org>
Date: Sun 09 Mar 2008 - 15:14:35 CET
Message-ID: <20080309141435.GA23059@herod.dreamhost.com>
On Sun, Mar 09, 2008 at 12:42:37AM -0500, Jeff Johnson wrote:
> /bin/echo on my system is unmodified from  
> Fedora 9 coreutils-6.10-4.fc9.i386

Interesting.  So, what do you get with a manual run?

    /bin/echo --foo --bar
    /bin/echo -- --foo --bar

I see all the option information output literally, including the --.
What do you get if you try a "make check" using that perl -e patch
instead of echo?  Does it still succeed for you?

> I added the longArg = NULL, am seeing the same failure on test # 9.

Very weird.  I don't see how my change could affect a short option's
separated arg.  Attached is an even safer version of the change that
ensures that the only time it ever sets longArg to NULL is if the
longArg was set to oe + 1 upon finding an equal sign.

I also tried using valgrind in the test suite:

    result=`valgrind $builddir/$prog $*`

and the test-run didn't turn up any errors.

..wayne..


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