42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

Check only '-i' option is pass to 'env': #175

Closed M5oul closed 7 years ago

M5oul commented 7 years ago
lsimonne commented 7 years ago

bah, le segfault est encore là en fait? dès qu'on fait env -i

M5oul commented 7 years ago

Aïe, oui,

env -i ls

segfault 😞

lsimonne commented 7 years ago

ah je crois que c'est moi ˆˆ

lsimonne commented 7 years ago

par contre env -- ça devrait pas essayer d'exécuter "--"

M5oul commented 7 years ago

Should be ok now!

lsimonne commented 7 years ago

env -- -p

M5oul commented 7 years ago
env -- ./42sh

behave like bash.

lsimonne commented 7 years ago

ignores arguments that start with a hyphen after "--"

problematic with e.g. env -- -toto=tata env and no error where there should be one e.g. env -- -p ls