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
{{ message }}
Repository navigation
parser: extglob-ON compound assignment elements still rejected (arr=(@(foo|bar)) with shopt -s extglob) #389
declare -a arr=([0]="+(test|bench)")
declare -a arr2=([0]="{a,b}" [1]="@(x|y)" [2]="c" [3]="d" [4]="@(one|two)")
rc 0
rubash:
stderr: <script>: line 2: syntax error near unexpected token `(`
<script>: line 3: declare: arr: not found
rc 1
Notes
extglob OFF: both shells reject arr=(@(foo|bar) ...) byte-identically (probe C01/C02) — that part is correct.
With extglob ON the PARSE_EXTENDED_GLOB gate (src/lexer, mirroring GNU parse.y:5466) apparently does not reach the compound-assignment element scan (parser/token_actions.rs atomic name=(...) path).
Raw artifacts: target/issue-suites/results/wt33-373/run/C0{1,2,3}_*.
tests/parser_tests.rs test_compound_assignment_records_extglob_elements / ..._ignores_quoted_brace_and_extglob_elements now assert the GNU-identical extglob-OFF parse error; the ON admission is tracked here.
Landed on master (wt37/gapfix1 batch, CI green on bbccb1c): see the issue-suite tests/issue389_*_regressions.rs and the lane's two-shell matrices on the ticket trail. Master carries the fix; suites green.
Activity
fix(#389): admit extglob pattern groups in compound-assignment elemen…
caomengxuan666 commentedon Oct 2, 2026
Landed on master (wt37/gapfix1 batch, CI green on bbccb1c): see the issue-suite tests/issue389_*_regressions.rs and the lane's two-shell matrices on the ticket trail. Master carries the fix; suites green.
fix(#391): compound-assignment element-leading [ spans are one glob w…