summaryrefslogtreecommitdiffstats
path: root/tests/posixexp7.sub
blob: 2e230cf855c7fd34ad8e6d760730fde5563e37db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# test the effect of quotes on the WORD in the posix pattern removal operators
# a here document does not behave the same as double quotes
x=notOK
cat <<EOF
5: ${x#$'not'}
EOF

echo "${x#'not'}"
echo "${x#$'not'}"

cat <<EOF
5: $'not\ttoo\nbad'
EOF