mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
67de733b9b
Fixes #1326
39 lines
685 B
Text
39 lines
685 B
Text
|
|
####################
|
|
# Test variable expand
|
|
1 2 3 4 5 6 7 8 9 10
|
|
10 9 8 7 6 5 4 3 2 1
|
|
2 3 4 5 8 7 6
|
|
10 9
|
|
10 9 8 7 6 5 4 3 2 1
|
|
|
|
####################
|
|
# Test variable set
|
|
10 9 8 7 6 5 4 3 2 1
|
|
1 2 3 4 5 6 7 8 9 10
|
|
10 9 8 7 6 5 4 3 2 1
|
|
10 7 8 9 6 5 2 3 4 1
|
|
|
|
####################
|
|
# Test using slices of command substitution
|
|
5 4 3 2 1
|
|
3 4 5 9 8 7 6 5 4 3 2
|
|
|
|
####################
|
|
# Test more
|
|
10 9 8 7 6 5 4 3 2 1
|
|
1 2 3 4 5 6 7 8 9 10
|
|
|
|
####################
|
|
# Verify that if statements swallow failure
|
|
0
|
|
|
|
####################
|
|
# Verify and/or behavior with if and while statements
|
|
success1
|
|
success2
|
|
success3
|
|
success4
|
|
|
|
####################
|
|
# Catch this corner case, which should produce an error
|