mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 14:34:05 +00:00
23 lines
654 B
Text
23 lines
654 B
Text
|
# Command sub at the limit should fail.
|
||
|
fish: Too much data emitted by command substitution so it was discarded
|
||
|
|
||
|
set b (string repeat -n 512 x)
|
||
|
^
|
||
|
# Command sub over the limit should fail.
|
||
|
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
|
||
|
|
||
|
# 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
|
||
|
^
|