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

Automatic placeholder quoting can break shell syntax #45

Open
EmilyGraceSeville7cf opened this issue Mar 8, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@EmilyGraceSeville7cf
Copy link
Member

The current behavior is to transform {string some} to "some". It will be misinterpreted by Bash if before quote we have a dollar sign, like ${string some} -> $"some".

@EmilyGraceSeville7cf EmilyGraceSeville7cf added the bug Something isn't working label Mar 8, 2023
@EmilyGraceSeville7cf EmilyGraceSeville7cf self-assigned this Mar 8, 2023
@EmilyGraceSeville7cf
Copy link
Member Author

EmilyGraceSeville7cf commented Mar 8, 2023

On the other hand we can write {string $variable}. 🤔

@EmilyGraceSeville7cf
Copy link
Member Author

EmilyGraceSeville7cf commented Mar 8, 2023

I think the best solution is to involve Bash parsing to understand how to display quotes: whether surround just placeholder description or a symbol before it too. But it's definitely will not be implemented in Bash parser soon.

@EmilyGraceSeville7cf EmilyGraceSeville7cf changed the title Regret automatic quoting: it can issues with Bash Automatic placeholder quoting can break shell syntax Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant