aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/cleanup.test
blob: 7fe746d05bc9d06713dff23834b3891227460b20 (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
$* <<EOI >>EOO          # file-dir
cmd &file &dir/
EOI
cmd &file &dir/
EOO

$* <<EOI >>EOO          # quote-file-dir
cmd &"f ile" &"d ir/"
EOI
cmd &"f ile" &"d ir/"
EOO

$* <<EOI >>EOO          # dup-file
cmd &file &file
EOI
cmd &file &file
EOO

$* <<EOI 2>>EOE != 0    # file-fail1
cmd & >file
EOI
testscript:1:7: error: missing cleanup path
EOE

$* <<EOI 2>>EOE != 0    # file-fail2
cmd &
EOI
testscript:1:6: error: missing cleanup path
EOE

$* <<EOI 2>>EOE != 0    # file-fail3
cmd &""
EOI
testscript:1:6: error: empty cleanup path
EOE