2017-08-04 20:36:51 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Test scoping rules for functions
|
2005-09-20 13:31:55 +00:00
|
|
|
Test 1 pass
|
|
|
|
Test 2 pass
|
|
|
|
Test 3 pass
|
2006-06-05 13:31:33 +00:00
|
|
|
Test 4 pass
|
2012-06-18 17:20:40 +00:00
|
|
|
Test 5 pass
|
|
|
|
Test 6 pass
|
|
|
|
Test 7 pass
|
|
|
|
Test 8 pass
|
|
|
|
Test 9 pass
|
|
|
|
Test 10 pass
|
|
|
|
Test 11 pass
|
|
|
|
Test 12 pass
|
|
|
|
Test 13 pass
|
|
|
|
Test 14 pass
|
|
|
|
Test 15 pass
|
|
|
|
Test 16 pass
|
|
|
|
Test 17 pass
|
|
|
|
Test 18 pass
|
|
|
|
Test 19 pass
|
|
|
|
Test 20 pass
|
|
|
|
Test 21 pass
|
|
|
|
Test 22 pass
|
2017-08-04 20:36:51 +00:00
|
|
|
|
|
|
|
####################
|
2017-07-24 18:42:54 +00:00
|
|
|
# Verify subcommand statuses
|
2013-01-31 23:57:08 +00:00
|
|
|
1 0 1
|
2017-08-04 20:36:51 +00:00
|
|
|
|
|
|
|
####################
|
2017-07-24 18:42:54 +00:00
|
|
|
# Verify that set passes through exit status, except when passed -n or -q or -e
|
2013-01-31 23:57:08 +00:00
|
|
|
1 1
|
|
|
|
2 0
|
|
|
|
3 0
|
|
|
|
4 0
|
|
|
|
5 0
|
|
|
|
6 0
|
2018-04-01 03:21:22 +00:00
|
|
|
7 4
|
2013-01-31 23:57:08 +00:00
|
|
|
8 0
|
2017-05-05 04:35:41 +00:00
|
|
|
9 121
|
2013-01-31 23:57:08 +00:00
|
|
|
10 0 A
|
|
|
|
11 1 B
|
2017-08-04 20:36:51 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Verify set -ql behavior (#2502)
|
2015-10-23 22:15:39 +00:00
|
|
|
Pass
|