42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

Set default variables #170

Closed lsimonne closed 7 years ago

lsimonne commented 7 years ago

-> the following are set as non-overwritable variables upon initialization:

-> underscore ("_"):

M5oul commented 7 years ago

All seems good. How could I check the value of _? echo $_ doesn't works whereas it works with bash.

set to last argument of input line at execution (after expansion)

Ah, ok, after expansion. Ok, let's validate it.

lsimonne commented 7 years ago

wasn't set after builtin execution, so it kept the name of builtin, now it works!