small changes to some error messages; greatly expanded builtins tests

This commit is contained in:
Chet Ramey
2023-09-28 10:47:17 -04:00
parent b3958b3ab4
commit 00edd0ee50
71 changed files with 1330 additions and 179 deletions
+3
View File
@@ -252,6 +252,9 @@ barray=(new1 new2 new3)
echo "length = ${#barray[@]}"
echo "value = ${barray[*]}"
# the compound assignment syntax inherited from ksh93 has some quirks
badarray=( metacharacters like & need to be quoted in compound assignments)
# make sure the array code behaves correctly with respect to unset variables
set -u
( echo ${#narray[4]} )