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