summaryrefslogtreecommitdiffstats
path: root/test/bashisms/heredoc-with-dash.sh
blob: 9200886d6c72fe5ea1876a17b8a32ffa8f5b4ade (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
#!/bin/sh

cat << -EOF1- 1>&2
CLEAN
-EOF1-

cat << -EOF2 1>&2
CLEAN
-EOF2

cat <<-EOF3 1>&2
CLEAN
	EOF3

cat <<- EOF4 1>&2
CLEAN
	EOF4

foo=bar

cat << '-EOF1-' 1>&2
CLEAN $foo
-EOF1-

cat << '-EOF2' 1>&2
CLEAN $foo
-EOF2

cat <<-'EOF3' 1>&2
CLEAN $foo
	EOF3

cat <<- 'EOF4' 1>&2
CLEAN $foo
	EOF4