mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 14:34:05 +00:00
23 lines
580 B
Fish
23 lines
580 B
Fish
|
#RUN: %fish -C 'set -l fish %fish' %s
|
||
|
|
||
|
# Test that fish -n doesn't check for command existence - function autoloading throws a wrench in that.
|
||
|
echo "type foo" | $fish -n
|
||
|
echo $status
|
||
|
#CHECK: 0
|
||
|
|
||
|
# Test that it doesn't check globs.
|
||
|
echo "echo /asfjidhfiusnlkxcnvklxcvlkmcxlv*" | $fish -n
|
||
|
echo $status
|
||
|
#CHECK: 0
|
||
|
|
||
|
# Test that it does print syntax errors.
|
||
|
echo "begin; echo oops" | $fish -n
|
||
|
#CHECKERR: fish: Missing end to balance this begin
|
||
|
#CHECKERR: begin; echo oops
|
||
|
#CHECKERR: ^
|
||
|
echo $status
|
||
|
#CHECK: 127
|
||
|
|
||
|
# Littlecheck assumes a status of 127 means the shebang was invalid.
|
||
|
exit 0
|