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