Skip to content
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

Quoted backtick command substitution replacement doesn't unescape quotes #1083

Open
Ashymad opened this issue Jul 18, 2024 · 1 comment
Open

Comments

@Ashymad
Copy link

Ashymad commented Jul 18, 2024

Before formatting:

$ echo "`echo \"foobar\"`"
foobar

After formatting:

$ echo "$(echo \"foobar\")"
"foobar"

Solution: quotes in a quoted backtick substitution should be unescaped

$ echo "$(echo "foobar")"
foobar
@mvdan
Copy link
Owner

mvdan commented Jul 18, 2024

Seems similar to #1041, thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants