Skip to content

Difference between quoting of bash and brush output in here-doc #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
idealseal opened this issue Mar 22, 2025 · 1 comment
Open

Difference between quoting of bash and brush output in here-doc #421

idealseal opened this issue Mar 22, 2025 · 1 comment
Labels
area: parsing Issues or PRs related to tokenization or parsing bug Something isn't working state: requires investigation Bug report that requires initial investigation / root-cause analysis

Comments

@idealseal
Copy link
Contributor

idealseal commented Mar 22, 2025

bash retains quotes around strings in a here-doc, brush doesn't.

sed 's/nice/cool/' <<-EOF
"nice"
EOF

in bash:

"cool"

in brush:

cool
@reubeno
Copy link
Owner

reubeno commented Mar 22, 2025

These issues are more good finds. Looking back at the POSIX spec I see a specific set of rules of how to process the here-doc for quotes, expansion, etc. We'll need someone to go back through those rules and make sure we're being faithful.

@reubeno reubeno added bug Something isn't working area: parsing Issues or PRs related to tokenization or parsing labels Mar 23, 2025
@reubeno reubeno added the state: requires investigation Bug report that requires initial investigation / root-cause analysis label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: parsing Issues or PRs related to tokenization or parsing bug Something isn't working state: requires investigation Bug report that requires initial investigation / root-cause analysis
Projects
None yet
Development

No branches or pull requests

2 participants