Skip to content

comsub execution: ansi-c quote ($'...' with escaped quote) inside $( ) fails with unexpected EOF #384

Closed

Description

@caomengxuan666

Found during wt33 test-maintenance triage of #373 (white-box stale-assertion sweep). This is a REAL semantic gap — the tests were updated to the carrier AST, but execution diverges from GNU.

Repro (script file, both shells)

target/issue-suites/results/wt33-373/cases/B05_comsub_ansic_quote.sh:

echo "$(echo foo$'\''bar)"

WSL GNU Bash 5.3.0 (/usr/local/bin/bash):

foo'bar
rc 0, empty stderr

rubash (target/debug/rubash.exe, same script file):

(empty stdout)
rubash stderr: <script>: command substitution: line 1: unexpected EOF while looking for matching `)'
rc 1

Notes

Activity

  1. added
    bug
    on Oct 2, 2026
  2. added 2 commits that reference this issue on Oct 2, 2026
  3. caomengxuan666 commented on Oct 2, 2026

    @caomengxuan666
    MemberAuthor

    Landed on master (wt37/gapfix1 batch, CI green on bbccb1c): see the issue-suite tests/issue384_*_regressions.rs and the lane's two-shell matrices on the ticket trail. Master carries the fix; suites green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions