mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-19 05:42:44 +08:00

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