[BusyBox] env - <command> -<opt> bug: env tries to eat -<opt>

Erik Andersen andersen at codepoet.org
Mon Jul 28 07:45:03 UTC 2003


On Fri Jul 25, 2003 at 01:55:18PM +0400, Vladimir N. Oleynik wrote:
> Denis,
> 
> ># ./busybox env - echo zzz
> >zzz
> ># ./busybox echo -n zzz
> >zzz
> ># ./busybox env - echo -n zzz
> >env: invalid option -- n
> >
> >	obviously, env tried to understand -n as env's option
> >	instead of blindly passing it to echo...
> >
> >BusyBox v1.00-pre1 (2003.07.16-07:53+0000) multi-call binary
> >
> >Usage: env [-iu] [-] [name=value]... [command]
> 
> Ah, you found very old problem.
> Last patch also have:
> 
> - multiple "-u unsetenv" support
> - GNU long option support
> - save errno after exec failed before bb_perror_msg()

applied,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list