[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [BusyBox] env - <command> -<opt> bug: env tries to eat -<opt>
From: Erik Andersen <andersen () codepoet ! org>
Date: 2003-07-28 7:45:03
[Download RAW message or body]
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--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic