a select command invalid selection variable name is now a fatal error in posix mode; many test suite additions

This commit is contained in:
Chet Ramey
2023-09-25 15:08:04 -04:00
parent 1cc5a8f752
commit b3958b3ab4
56 changed files with 903 additions and 147 deletions
+9
View File
@@ -32,3 +32,12 @@ bar[1]=set
typeset -a qux
[[ -v qux ]] || echo qux: unset array: ok
[[ -v qux[0] ]] || echo qux: unset array element 0: ok
unset -v a
a[1]=set
[[ -v a ]] ; echo $?
[[ -v a[1] ]] ; echo $?
[[ -v a[@] ]] ; echo $?
[[ ${#a[@]} > 0 ]]; echo $?