fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
1e858eae3
master
1#RUN: %fish %s 2 3set -xl LANG C# uniform quotes 4 5eval 'true | and' 6# CHECKERR: {{.*}}: The 'and' command can not be used in a pipeline 7# CHECKERR: true | and 8# CHECKERR: ^~^ 9 10eval 'true | or' 11# CHECKERR: {{.*}}: The 'or' command can not be used in a pipeline 12# CHECKERR: true | or 13# CHECKERR: ^^ 14 15# Verify and/or behavior with if and while 16if false ;or true 17echo success1 18end 19# CHECK: success1 20if false ;and false 21echo failure1 22end 23while false ;and false ;or true 24echo success2 25break 26end 27# CHECK: success2 28while false ;or begin 29false ;or true 30end 31echo success3 32break 33end 34# CHECK: success3 35if false 36else if false ;and true 37else if false ;and false 38else if false ;or true 39echo success4 40end 41# CHECK: success4 42if false 43else if false ;and true 44else if false ;or false 45else if false 46echo "failure 4" 47end 48if false ;or true | false 49echo failure5 50end