2017-08-04 12:25:20 +08:00
|
|
|
|
|
|
|
####################
|
2017-08-04 11:56:14 +08:00
|
|
|
# Command sub just under the limit should succeed
|
2017-08-04 12:25:20 +08:00
|
|
|
|
|
|
|
####################
|
2017-08-04 11:56:14 +08:00
|
|
|
# Command sub at the limit should fail
|
2017-07-27 11:17:04 +08:00
|
|
|
fish: Too much data emitted by command substitution so it was discarded
|
|
|
|
|
|
|
|
set b (string repeat -n 512 x)
|
|
|
|
^
|
2017-08-04 12:25:20 +08:00
|
|
|
|
|
|
|
####################
|
2017-08-04 11:56:14 +08:00
|
|
|
# Command sub over the limit should fail
|
2017-07-27 11:17:04 +08:00
|
|
|
fish: Too much data emitted by command substitution so it was discarded
|
|
|
|
|
|
|
|
set -l x (string repeat -n $argv x)
|
|
|
|
^
|
|
|
|
in function 'subme'
|
|
|
|
called on standard input
|
|
|
|
with parameter list '513'
|
|
|
|
|
|
|
|
in command substitution
|
|
|
|
called on standard input
|
|
|
|
|
2017-08-04 12:25:20 +08:00
|
|
|
|
|
|
|
####################
|
2017-08-04 11:56:14 +08:00
|
|
|
# Make sure output from builtins outside of command substitution is not affected
|
2017-08-04 12:25:20 +08:00
|
|
|
|
|
|
|
####################
|
2017-07-27 11:17:04 +08:00
|
|
|
# Same builtin in a command substitution is affected
|
|
|
|
fish: Too much data emitted by command substitution so it was discarded
|
|
|
|
|
|
|
|
echo this will fail (string repeat --max 513 b) to output anything
|
|
|
|
^
|