File: test_cmdsub.err

package info (click to toggle)
fish 3.0.2-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,448 kB
  • sloc: ansic: 75,559; cpp: 43,314; sh: 9,096; javascript: 7,710; python: 2,538; makefile: 1,461; objc: 709; perl: 367; xml: 18
file content (34 lines) | stat: -rw-r--r-- 901 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

####################
# 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
                    ^