You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area:builtinsbuiltin semantics (printf/declare/command/type/...)bugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
With set -a (allexport), GNU does NOT mark arrays for export (arrays cannot be exported): declare -p shows plain declare -a. rubash wrongly adds the -x attribute to arrays created by compound assignment under set -a.
Scope (morph, GNU vs rubash, two passes, identical)
DIFF: indexed compound arr=(1 2) (mC1), associative declare -A m=([k]=v) (mC2, GNU declare -A, rubash declare -Ax), empty arr=() (mC3), declare -a arr=(1 2) (mC5).
SAME (controls): subscript assignment arr[0]=x under set -a shows no -x on either shell (mC4); printenv arr fails (rc 1) on both — the spurious -x is attribute-only and does not actually export (mC7); scalar s=x under set -a is correctly -x on both (mC8); no set -a shows no -x on either (mC6). So the defect is the compound-assignment array-creation path adding -x under allexport, while the subscript-assignment path is correct.
area:builtinsbuiltin semantics (printf/declare/command/type/...)bugSomething isn't workinggnu-baselineTracked by the GNU Bash 5.3.0 true-baseline ledger
Activity
fix: r79 allexport marks, assoc subscript single-eval, source diagnos…
r79: allexport local/readonly + array marks, assoc subscript single-e…