mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
f708632ca3
This is flaky on launchpad for some reason, and it's really not important enough to hold it up. So let's just leave this untested.
16 lines
482 B
Fish
16 lines
482 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
|
|
|
|
# This needs to be last, because it actually runs exec.
|
|
exec cat </dev/null
|
|
echo "not reached"
|
|
|