2017-08-04 14:57:36 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Test variable expand
|
2012-07-08 09:19:11 +08:00
|
|
|
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
|
2017-08-04 14:57:36 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Test variable set
|
2012-07-08 09:39:39 +08:00
|
|
|
10 9 8 7 6 5 4 3 2 1
|
|
|
|
1 2 3 4 5 6 7 8 9 10
|
2012-07-08 09:19:11 +08:00
|
|
|
10 9 8 7 6 5 4 3 2 1
|
|
|
|
10 7 8 9 6 5 2 3 4 1
|
2017-08-04 14:57:36 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Test using slices of command substitution
|
2012-07-08 09:19:11 +08:00
|
|
|
5 4 3 2 1
|
|
|
|
3 4 5 9 8 7 6 5 4 3 2
|
2017-08-04 14:57:36 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Test more
|
2012-07-08 09:45:34 +08:00
|
|
|
10 9 8 7 6 5 4 3 2 1
|
|
|
|
1 2 3 4 5 6 7 8 9 10
|
2017-08-04 14:57:36 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify that if statements swallow failure
|
2014-02-08 09:56:40 +08:00
|
|
|
0
|
2017-08-04 14:57:36 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify and/or behavior with if and while statements
|
2015-12-12 03:44:54 +08:00
|
|
|
success1
|
|
|
|
success2
|
|
|
|
success3
|
|
|
|
success4
|
2017-08-04 14:57:36 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Catch this corner case, which should produce an error
|