Bash-4.3 distribution sources and documentation
This commit is contained in:
parent
4539d736f1
commit
ac50fbac37
497 changed files with 129395 additions and 87598 deletions
29
tests/nquote2.sub
Normal file
29
tests/nquote2.sub
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
t() {
|
||||
printf '%s | %s\n' "$1" "$2"
|
||||
}
|
||||
v="'" # v <- '
|
||||
|
||||
#--
|
||||
t "${v/$'\''/$'\''}" "'"
|
||||
t ${v/$'\''/$'\''} "'"
|
||||
t "${v/$'\''/x}" "x"
|
||||
t ${v/$'\''/x} "x"
|
||||
t "${v/x/$'\''}" "'"
|
||||
t ${v/x/$'\''} "'"
|
||||
t "${v/x/$'\x5c\''}" "'"
|
||||
t ${v/x/$'\x5c\''} "'"
|
||||
t "${v/\'/\'}" "'"
|
||||
t ${v/\'/\'} "'"
|
||||
t ${v/\'/x} "x"
|
||||
|
||||
echo "'"
|
||||
echo "$'\''"
|
||||
|
||||
echo $'\''
|
||||
|
||||
echo $'\'abcd\''
|
||||
echo "$'\'abcd\''"
|
||||
|
||||
v=1
|
||||
echo ${v/1/\'}
|
||||
echo ${v/\'/2}
|
||||
Loading…
Add table
Add a link
Reference in a new issue