mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
4197420f39
This makes command substitutions impose the same limit on the amount of data they accept as the `read` builtin. It does not limit output of external commands or builtins in other contexts. Fixes #3822
23 lines
411 B
Text
23 lines
411 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
|
|
success1
|
|
success2
|
|
success3
|
|
success4
|