fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian BoehmMake tests usable with path with spacese66f6878b

master
888 B36 linesraw
1#RUN: fish=%fish %fish %s
2
3# Test that fish -n doesn't check for command existence - function autoloading throws a wrench in that.
4echo "type foo" | $fish -n
5echo $status
6#CHECK: 0
7
8# Test that it doesn't time non-execution.
9echo "time echo foo" | $fish -n
10echo $status
11#CHECK: 0
12
13# Test that it doesn't check globs.
14echo "echo /asfjidhfiusnlkxcnvklxcvlkmcxlv*" | $fish -n
15echo $status
16#CHECK: 0
17
18# Test that it does print syntax errors.
19echo "begin; echo oops" | $fish -n
20#CHECKERR: fish: Missing end to balance this begin
21#CHECKERR: begin; echo oops
22#CHECKERR: ^~~~^
23echo $status
24#CHECK: 127
25
26echo "begin" > broken
27$fish -n $PWD/broken
28#CHECKERR: /{{.*}}broken (line 1): Missing end to balance this begin
29#CHECKERR: begin
30#CHECKERR: ^~~~^
31#CHECKERR: warning: Error while reading file /{{.*}}broken
32
33rm broken
34
35# Littlecheck assumes a status of 127 means the shebang was invalid.
36exit 0