mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
feat(redirection): print path of redirection target on redirection error
This commit is contained in:
parent
b6e97ac2c7
commit
9db47dc96d
2 changed files with 25 additions and 2 deletions
9
test.sh
9
test.sh
|
|
@ -968,4 +968,13 @@ hello
|
|||
the answer
|
||||
EOF
|
||||
|
||||
when_run <<EOF "output to file with no access"
|
||||
echo hello > /root/outfile
|
||||
echo \$?
|
||||
EOF
|
||||
expecting <<EOF
|
||||
minishell: /root/outfile: Permission denied
|
||||
1
|
||||
EOF
|
||||
|
||||
finalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue