enable support for using `&' in the pattern substitution replacement string

This commit is contained in:
Chet Ramey committed 2021-10-04 15:30:21 -04:00
1 parent 70d7c6430d
commit f188aa6a01
22 files changed
+518 -209

No files matched your search

+6 -1
View File
@@ -52,6 +52,11 @@ for (( i = 0 ; i < ${#E[@]} ; i++ )); do
echo "${E[${i}]}"
done
${THIS_SH} ./mapfile1.sub
unset -v s array
s=$'a\xffb\xffc\xff'
mapfile -t -d $'\xff' array <<<"$s"
declare -p array
unset -v s array
${THIS_SH} ./mapfile1.sub
${THIS_SH} ./mapfile2.sub