Files
bash/tests/posixexp7.sub
2018-09-17 15:10:56 -04:00

14 lines
249 B
Plaintext

# 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