On Mar 9, 2008, at 6:22 PM, Wayne Davison wrote:

On Sun, Mar 09, 2008 at 10:51:42AM -0400, Jeff Johnson wrote:
[EMAIL PROTECTED] popt]$ /bin/echo --foo --bar
--bar
[EMAIL PROTECTED] popt]$ /bin/echo -- --foo --bar
--foo --bar

OK, Let's hope that your echo will not drop anything if the first arg
passed to it is a non-option (such as "args:").  If so, the attached
patch should work for everyone (it does for me).


Clever hack to change the 1st arg to echo ...

However, not-POSIXLY_CORRECT rearrangements _SHOULD_ cause
argument permutation with, say,

    /bin/echo args:  A -b C -d --foo --bar

afaict that may exhibit the same failure lossage as before. Dunno, non-POSIXLY_CORRECT echo(1) argument processing definition(s) I'll leave to LSB-53, "unspecified" behavior
is gud enuf for me.

The better fix (for me as well as popt) is to get a non-Fedora enhanced /bin/echo ... todo++.

73 de Jeff
______________________________________________________________________
POPT Library                                           http://rpm5.org
Developer Communication List                       [email protected]

Reply via email to