mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
d5f3a09ce9
Previously 'set -ql' would only look for variables in the immediate local scope. This was not very useful. It's also arguably surprising, since a 'set -l' in a function, followed by a 'set -ql' in a child block, would fail. There was also no way to check for a function-scoped variable, since omitting the scope would also pull in global variables. We could revisit this and introduce an explicit function scope. Fixes #2502
38 lines
467 B
Text
38 lines
467 B
Text
Test 1 pass
|
|
Test 2 pass
|
|
Test 3 pass
|
|
Test 4 pass
|
|
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
|
|
Verify subcommand statuses
|
|
1 0 1
|
|
Verify that set passes through exit status, except when passed -n or -q or -e
|
|
1 1
|
|
2 0
|
|
3 0
|
|
4 0
|
|
5 0
|
|
6 0
|
|
7 1
|
|
8 0
|
|
9 1
|
|
10 0 A
|
|
11 1 B
|
|
Verify set -ql behavior
|
|
Pass
|