preserve traps across a failed exec; small changes to how completion options interact; fix a bug with arithmetic for commands and LINENO

This commit is contained in:
Chet Ramey
2021-10-11 10:38:16 -04:00
parent f74291e6d1
commit 304b1e938c
15 changed files with 228 additions and 16 deletions
+15
View File
@@ -35,3 +35,18 @@ func()
func
echo "${foo[@]}"
unset foo
# test options to declare that disable attributes that affect how values
# are expanded
#
# we already handle options that set attributes specially, so we should
# handle attributes that unset those attributes specially as well
unset arr
declare -i -a arr=(1+1 2+2 3+3)
declare -p arr
declare +i arr=(hello world)
declare -p arr