From: Stachu 'Dozzie' K. on
On 2010-05-15, Name withheld by request <anonb6e9(a)nyx3.nyx.net> wrote:
> Bug or feature? Pls explain:
>
> /tmp $ env -i bash -c 'x=4;bash -c "echo x: /\$x/"'
> x: //
> /tmp $ env -i x=9 bash -c 'x=4;bash -c "echo x: /\$x/"'
> x: /4/

env -i bash -c 'x=4; export x; bash -c "echo x: /\$x/"'

> --snip
> ~ $ uname -r; echo $BASH_VERSION
> 2.6.27.41-170.2.117.fc10.i686
> 3.2.39(1)-release
>
> --
> thx


--
Secunia non olet.
Stanislaw Klekot