Files
bash/tests/posixexp7.sub
T
2019-01-07 09:27:52 -05: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