fish-shell/tests/test_cmdsub.err
Aaron Gyes 36367e4882 Update tests
Fish is always executed as ../test/root/bin/fish in these expect tests
2018-11-27 11:59:44 -08:00

34 lines
952 B
Text

####################
# Command sub just under the limit should succeed
####################
# Command sub at the limit should fail
../test/root/bin/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
../test/root/bin/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
../test/root/bin/fish: Too much data emitted by command substitution so it was discarded
echo this will fail (string repeat --max 513 b) to output anything
^