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
interp: case ignores the ;;& and ;& fallthrough terminators #1391
For *.tar.gz this sets untar=1 and never selects a decompressor, so the script proceeds with an unset variable and the symptom appears elsewhere.
A silently-ignored terminator is worse than a parse error, which would at least stop on the line responsible. If honoring them is not desirable, rejecting them at parse time would be strictly better than the current behavior.
Found by a bash-vs-gosh differential sweep (128 snippets, each run direct and through eval) while integrating interp as the substrate of a shell. Reproduced on gosh@v3.13.2-0.20260813221317-a04df9f0d4b8 against bash 5.3.15 on darwin/arm64. Happy to send a PR if the direction looks right.
Activity
interp: implement case's ;& and ;;& terminators