summaryrefslogtreecommitdiffstats
path: root/test/bashisms/heredoc-with-others.sh
blob: 9f0c04f1710e2dfedbf8132a53340e02ffdf280d (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
73
74
75
76
77
#!/bin/sh

cat << =EOF1
function CLEAN() {}
=EOF1

cat << :EOF2
function CLEAN() {}
:EOF2

cat << ,EOF3
function CLEAN() {}
,EOF3

cat << ?EOF4
function CLEAN() {}
?EOF4

cat << E$OF5
function CLEAN() {}
E$OF5

cat << $EOF6
function CLEAN() {}
$EOF6

cat << EOF_7
function CLEAN() {}
EOF_7

cat << EOF;:
function CLEAN() {}
EOF

cat << EOF{}9
function CLEAN() {}
EOF{}9

cat << EOF\ 10
function CLEAN() {}
EOF 10

cat << EOF\;11
function CLEAN() {}
EOF;11

cat << EOF\12
function CLEAN() {}
EOF12

cat << EOF\\13
function CLEAN() {}
EOF\13

cat << EOF\\1\\4
function CLEAN() {}
EOF\1\4

cat << \<EOF15\>
function CLEAN() {}
<EOF15>

cat << "E\OF16"
function CLEAN() {}
E\OF16

cat << 'E\OF17'
function CLEAN() {}
E\OF17

cat << EOF18|:
function CLEAN() {}
EOF18

cat << EOF19>/dev/null
echo -e CLEAN() {}
EOF19