42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

env should stop reading options after first non-option arg (or "--") #183

Closed lsimonne closed 7 years ago

lsimonne commented 7 years ago
[ChezLouise@ ~/Documents/42/42sh]$ env ./42sh -i
42sh: I need a variable "TERM"
[ChezLouise@ ~/Documents/42/42sh]$ env ls -l
Usage: env [-i] name[=word]…
lsimonne commented 7 years ago

seems to be a get_options_core problem, same goes with echo

M5oul commented 7 years ago

Yep, this function handle options at the end. Do we remove this feature?

pilespin commented 7 years ago

Hello

pilespin commented 7 years ago

@M5oul #184