mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix(exec): return code 126 when command is found but permission denied
This commit is contained in:
parent
9d37d07589
commit
527a624765
2 changed files with 14 additions and 5 deletions
11
test.sh
11
test.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue