blob: 4d5d3b3d83886eac6648bb59c5ba3344377d9ae8 (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
$*
$* -i 0 <foo
$* -o foo >foo
$* -o foo >-
$* -e foo 2>-
$* -o foo -o bar >>EOO
foo
bar
EOO
$* -i 1 <<EOI >>EOO
foo
bar
EOI
foo
bar
EOO
$* -i 2 <<EOI 2>>EOE
foo
bar
EOI
foo
bar
EOE
$* -i 2 -s 1 <<EOI 2>>EOE != 0
foo
bar
EOI
foo
bar
EOE
$* -i 2 -o baz -s 10 <<EOI 1>baz 2>>EOE == 10
foo
bar
EOI
foo
bar
EOE
# No-newline tests.
#
# @@ TMP Need does not compare test.
#
$* -i 1 <:"foo" >:"foo" # no-newline-str
#\
$* -i 1 <:"foo" >!"foo" # no-newline-str-fail1
$* -i 1 <"foo" >:!"foo" # no-newline-str-fail2
#\
$* -i 1 <<:EOI >>:EOO # no-newline-doc
foo
EOI
foo
EOO
#\
$* -i 1 <<:EOI >>!EOO # no-newline-doc-fail1
foo
EOI
foo
EOO
$* -i 1 <<EOI >>:!EOO # no-newline-doc-fail2
foo
EOI
foo
EOO
#\
|