mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 08:58:01 +00:00
a21db45cee
Fixes #1665
93 lines
789 B
Text
93 lines
789 B
Text
Test1
|
|
|
|
begin
|
|
echo hi
|
|
|
|
|
|
end | cat | cat | begin
|
|
echo hi
|
|
end | begin
|
|
begin
|
|
echo hi
|
|
end
|
|
end arg
|
|
|
|
Test2
|
|
|
|
switch aloha
|
|
|
|
case alpha
|
|
echo sup
|
|
|
|
case beta gamma
|
|
echo hi
|
|
|
|
end
|
|
|
|
Test3
|
|
|
|
function hello_world
|
|
|
|
begin
|
|
echo hi
|
|
end | cat
|
|
|
|
echo sup
|
|
echo sup
|
|
echo hello
|
|
|
|
|
|
echo hello
|
|
end
|
|
|
|
Test4
|
|
|
|
echo alpha #comment1
|
|
#comment2
|
|
|
|
#comment3
|
|
for i in abc #comment1
|
|
#comment2
|
|
echo hi
|
|
end
|
|
|
|
switch foo #abc
|
|
# bar
|
|
case bar
|
|
echo baz\
|
|
qqq
|
|
case "*"
|
|
echo sup
|
|
end
|
|
Test5
|
|
|
|
if true
|
|
else if false
|
|
echo alpha
|
|
switch beta
|
|
case gamma
|
|
echo delta
|
|
end
|
|
end
|
|
|
|
Test6
|
|
|
|
begin
|
|
echo hi
|
|
else
|
|
echo bye
|
|
end
|
|
echo alpha "
|
|
|
|
Test7
|
|
|
|
if begin
|
|
false
|
|
end
|
|
echo hi
|
|
end
|
|
while begin
|
|
false
|
|
end
|
|
echo hi
|
|
end
|