summaryrefslogtreecommitdiffstats
path: root/test/bashisms/quoted-strings.sh
blob: bf881049dd75d0bef1f976566a1433e6066a8b70 (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
#!/bin/sh

foo="
echo -e nothing wrong here
#crap"

echo -e BASHISM

foo="\
#crap"

echo -e BASHISM

case foo in
    *\'*)
	echo -e BASHISM
	;;
esac
#'
echo -e BASHISM

case foo in
    *\\"*")
	echo -e BASHISM
	;;
    *\\\"*)
	echo -e BASHISM
	;;
    *\"*)
	echo -e BASHISM
	;;
esac
#"
echo -e BASHISM

foo='\'
echo -e BASHISM