Comment 18 for bug 1373781

Revision history for this message
Spyros (spyros-q) wrote :

Thank you for the reply Marc & Simon.
Unfortunately this isn't due to a leftover file.

spyros@prod01:~# env X='() { (a)=>\' bash -c "echo date"; cat echo
bash: X: line 1: syntax error near unexpected token `='
bash: X: line 1: `'
bash: error importing function definition for `X'
Fri Sep 26 12:14:15 PDT 2014
spyros@prod01:~# rm echo
spyros@prod01:~# env X='() { (a)=>\' bash -c "echo date"; cat echo
bash: X: line 1: syntax error near unexpected token `='
bash: X: line 1: `'
bash: error importing function definition for `X'
Fri Sep 26 12:15:24 PDT 2014

The only difference between the "working" and "non-working" version that I spot, is the -i argument to env, but I'm not sure why/how the empty environment would affect this.