posix mode changes for interp 1150; fix for varassign redirection; fix for nameref in ${param=value} expansion

This commit is contained in:
Chet Ramey
2023-04-11 09:56:03 -04:00
parent ec9447ce93
commit 15b199c0dd
12 changed files with 113 additions and 10 deletions
+14
View File
@@ -228,6 +228,20 @@ echo "expect <four>"
echo $qux
ckval qux ${bar[3]}
bar=()
declare -n ref='bar[1]'
echo "expect <X>"
echo ${ref=X}
ckval ref ${bar[1]}
unset -n ref
declare -n ref
echo "expect <X>"
echo ${ref=X}
ckval ref ${ref}
# Need to add code and tests for `for' loop nameref variables
echo errors = $errors