Repository navigation
fix(interpreter): ${v@a} prints every attribute letter - #2626
Merged
Merged
Conversation
Reuses declare -p's attribute letters, follows namerefs, and repeats per
element for ${arr[@]@A}. It only knew r and x.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | 10186d5 | Commit Preview URL Branch Preview URL |
Oct 08 2026, 02:01 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Михайло · project thread
What changed
${v@a}now prints the same attribute lettersdeclare -pshows, in bash's order:a/A,i,n,r,x,l,u. It follows namerefs to their target, a subscript (${f[k]@a}) reports the array, and${arr[@]@a}repeats the letters once per element.Why
Bash-oracle gap
param-transform-ops. The transform only knewrandx, so integer and array variables reported nothing, which breaks scripts that branch on[[ ${v@a} == *a* ]].Before / After
New spec
param-attr-transform.test.sh(4 cases, checked against bash 5.2 and bybash_comparison_tests).Risk
Low; only the
@aoperator changes.-tand-care not modeled as attributes, so they still print nothing.Checklist
-D warningsbash_comparison_testsGenerated by Claude Code