42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

special parameter expansion handling #168

Closed lsimonne closed 7 years ago

lsimonne commented 7 years ago

before (tries to expand "?foo")

[ChezLouise@ ~/Documents/42/42sh]$ echo $?foo
  executing builtin echo

  done executing builtin echo, ok

after

[ChezLouise@ ~/Documents/42/42sh]$ echo $?foo
  executing builtin echo
0foo
  done executing builtin echo, ok

(you need to run a non-builtin command first, as $ isn't set at init for the moment)