Prev: env -i x=9 bash -c 'x=4;bash -c "echo x: /\$x/"' # then try w/o 'x=9'
Next: env -i x=9 bash -c 'x=4;bash -c "echo x: /\$x/"' # try w/o 'x=9'
From: Stachu 'Dozzie' K. on 15 May 2010 20:04 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 |