mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-27 19:53:36 +08:00
c3f1961e36
This switches function execution from the function's source code to its stored node and pstree. This means we no longer have to re-parse the function every time we execute it.
35 lines
901 B
Plaintext
35 lines
901 B
Plaintext
|
|
####################
|
|
# Command sub just under the limit should succeed
|
|
|
|
####################
|
|
# 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
|
|
|
|
|
|
####################
|
|
# Make sure output from builtins outside of command substitution is not affected
|
|
|
|
####################
|
|
# 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
|
|
^
|