42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

echo `unsetenv $PATH` bug in parameter_expansion #303

Closed n0izn0iz closed 7 years ago

n0izn0iz commented 7 years ago
[nmeier@e1r9p16.42.fr ~/Projects/42sh]$ echo `unsetenv $PATH`
<tokens>
TOKEN: s=echo
TOKEN: s=`unsetenv $PATH`
NEWLINE: s=\n
</tokens>
<syntax_tree>
command: echo
argument(s): `unsetenv $PATH`
</syntax_tree>
expanding 'echo'
is 'echo' after param exp
expanding '`unsetenv $PATH`'
is '`unsetenv ' after param exp