Bash-4.3 distribution sources and documentation

This commit is contained in:
Chet Ramey 2014-02-26 09:36:43 -05:00
commit ac50fbac37
497 changed files with 129395 additions and 87598 deletions

29
tests/nquote2.sub Normal file
View 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}