mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
14 lines
427 B
Fish
14 lines
427 B
Fish
|
#RUN: %fish %s
|
||
|
exec cat < nosuchfile
|
||
|
#CHECKERR: warning: An error occurred while redirecting file 'nosuchfile'
|
||
|
#CHECKERR: open: No such file or directory
|
||
|
echo "failed: $status"
|
||
|
#CHECK: failed: 1
|
||
|
not exec cat < nosuchfile
|
||
|
#CHECKERR: warning: An error occurred while redirecting file 'nosuchfile'
|
||
|
#CHECKERR: open: No such file or directory
|
||
|
echo "neg failed: $status"
|
||
|
#CHECK: neg failed: 0
|
||
|
exec cat < /dev/null
|
||
|
echo "not reached"
|