Repository navigation
export: apply att_exported even when the operand bind fails (Refs #3533) - #3587
Merged
Merged
Conversation
GNU setattr.def binds the operand first (do_assignment_no_expand -> bind_variable), then set_var_attribute applies the attribute change regardless of the bind's success — `export s=2` on a readonly s reports err_readonly yet leaves `declare -rx s`, and `export -n x=2` on a readonly exported x still removes att_exported. rubash returned early on the readonly refusal in both faces, skipping the attribute update. Pin: tests/issue3533_export_readonly_attr.rs (4 cases). Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
caomengxuan666
force-pushed
the
fix/3533-export-readonly-attr
branch
from
November 14, 2026 14:18
4405ddc to
fe9153b
Compare
caomengxuan666
marked this pull request as draft
November 14, 2026 14:18
Member
Author
|
【WIN-AGENT-AUDIT】 机制核查:
腿(逐项):
F 点:无。 |
Member
Author
|
【队长终裁】PASS 核过审计报告(6885864262)+ CI 全表。钉 4/4,fail-first 1/3(3 红 = issue 形状:base 输出 |
caomengxuan666
marked this pull request as ready for review
November 15, 2026 02:05
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.
Summary
GNU setattr.def binds the operand first (do_assignment_no_expand ->
bind_variable), then set_var_attribute applies the attribute change
regardless of the bind's success —
export s=2on a readonly s reportserr_readonly yet leaves
declare -rx s, andexport -n x=2on areadonly exported x still removes att_exported. rubash returned early on
the readonly refusal in both faces, skipping the attribute update.
Pin: tests/issue3533_export_readonly_attr.rs (4 cases).
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>