On Wed, Jun 13, 2012 at 07:37:13PM +0200, John Spencer wrote:
> On 06/13/2012 01:39 PM, Denys Vlasenko wrote:
> >On Tue, Jun 12, 2012 at 11:22 PM, John Spencer
> ><[email protected]>  wrote:
> >>whatever option i pass to unzip, it only shows me the usage...
> >Cannot reproduce:
> >
> >I removed CONFIG_EXTRA_CFLAGS="-D__musl__ -static"
> >from your .config, build 1.20.1 and resulting busybox
> >does work for me:
> >
> 
> thanks for your investigation.
> 
> I could trace it back to
> 
> /* '-' makes getopt return 1 for non-options */
> while ((opt = getopt(argc, argv, "-d:lnopqxv")) != -1)
> 
> this returns *not* 1 with musl. according to Rich the commented
> behaviour is a gnuism and not POSIX.

This should also break with uClibc using the small getopt option
(versus the full GNU getopt option), since theirs is actually copied
from a very old version of mine (probably still current since it's
hardly changed since I originally wrote it).

Rich
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to