feat(redirection): print path of redirection target on redirection error

This commit is contained in:
Khaïs COLIN 2025-04-22 16:21:10 +02:00
parent b6e97ac2c7
commit 9db47dc96d
2 changed files with 25 additions and 2 deletions

View file

@ -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