additional tests; documentation updates

This commit is contained in:
Chet Ramey
2022-07-12 10:19:29 -04:00
parent 67e47f224c
commit 87a6e89edc
20 changed files with 2104 additions and 2185 deletions
+2
View File
@@ -41,3 +41,5 @@ baz
foo
bar
baz
<áa>
<aá>
+1
View File
@@ -62,3 +62,4 @@ ${THIS_SH} ./alias2.sub
${THIS_SH} ./alias3.sub
${THIS_SH} ./alias4.sub
${THIS_SH} ./alias5.sub
${THIS_SH} ./alias6.sub
+13
View File
@@ -0,0 +1,13 @@
# make sure aliases that end in multibyte characters don't interfere with the
# space sentinel alias expansion adds; problem through bash-5.1
shopt -s expand_aliases
LC_ALL=en_US.UTF-8
alias a1='printf "<%s>\\n" áa'
a1
alias a2='printf "<%s>\\n" aá'
a2
unalias a1 a2
+2
View File
@@ -19,6 +19,7 @@ argv[1] = <sed> argv[2] = <-e> argv[3] = <s/[^I:]//g>
argv[1] = <foo\^Jbar>
argv[1] = <foobar>
argv[1] = <foo\^Jbar>
nested
#esac
a
ok 1
@@ -62,5 +63,6 @@ ok 4
ok 5
ok 6
ok 7
ok 9
ok 8
ok 8
+7
View File
@@ -69,6 +69,13 @@ comsub_foo_1()
echo $(while true; do case $HOME in /*) echo abs ;; esac; done)
}
echo $(
echo $(
echo $(echo $( echo nested )
)
)
)
${THIS_SH} ./comsub1.sub
${THIS_SH} ./comsub2.sub
${THIS_SH} ./comsub3.sub
+6
View File
@@ -36,6 +36,12 @@ echo "$( nest echo ok 7 ) )"
alias short='echo ok 8 )'
alias DO='{ '
alias DONE='}'
got=$(DO
echo ok 9; DONE)
echo "$got"
echo $( short
echo "$( short "