Skip to content

Failed to parse undelimited quote inside of here-doc #420

@idealseal

Description

@idealseal

The following works in bash:

var=$(
  sed 's/nice/cool/' - <<-EOF
  that's
  "nice"
EOF
)
echo $var

brush:

ERROR error: failed to parse word '$(
sed 's/is//' - <<-EOF
  that's
  is
  "nice"
EOF
)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: parsingIssues or PRs related to tokenization or parsingbugSomething isn't workingorigin: userReported by brush userstate: requires investigationBug report that requires initial investigation / root-cause analysis

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions