fix(exec): return code 126 when command is found but permission denied

This commit is contained in:
Khaïs COLIN 2025-04-24 14:01:20 +02:00
parent 9d37d07589
commit 527a624765
2 changed files with 14 additions and 5 deletions

11
test.sh
View file

@ -1010,4 +1010,15 @@ boubou
0
EOF
when_run <<EOF "PATH unset with command in current dir"
touch cat
unset PATH
cat
echo \$?
EOF
expecting <<EOF
minishell: cat: Permission denied
126
EOF
finalize