mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-22 13:27:58 +02:00
14 lines
249 B
Plaintext
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
|