minishell icon indicating copy to clipboard operation
minishell copied to clipboard

[BUG] Wrong exit code for `cat | < notexist`

Open itislu opened this issue 1 year ago • 0 comments

bash-5.1$ cat | < notexist
bash: notexist: No such file or directory

bash-5.1$ echo $?
0

Our exit code is 1.

itislu avatar Mar 16 '24 16:03 itislu