[BusyBox] env - <command> -<opt> bug: env tries to eat -<opt>
Vladimir N. Oleynik
dzo at simtreas.ru
Fri Jul 25 09:55:18 UTC 2003
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()
--w
vodz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: last_patch98
Url: http://lists.busybox.net/pipermail/busybox/attachments/20030725/aaaa2283/attachment.diff
More information about the busybox
mailing list