mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08: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.
17 lines
482 B
Fish
17 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"
|
|
|