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

Examples/guidance for more complex shell escaping #834

Open
milas opened this issue Mar 19, 2021 · 0 comments
Open

Examples/guidance for more complex shell escaping #834

milas opened this issue Mar 19, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@milas
Copy link
Contributor

milas commented Mar 19, 2021

Escaping shell commands is very tricky! Often in Starlark/Python, it means a combination of multiline (aka triple-quote ''') strings + raw strings (r"foo").

We've already got a few examples in the docs for shlex.quote: https://docs.tilt.dev/api.html#modules.shlex.quote

But we could probably stand to add a couple more for more complex cases with embedded quoting, for example.

@milas milas added the enhancement New feature or request label Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant