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

Avoid shell-escaping of env vars #283

Merged
merged 3 commits into from
Jan 28, 2025
Merged

Avoid shell-escaping of env vars #283

merged 3 commits into from
Jan 28, 2025

Conversation

smarr
Copy link
Owner

@smarr smarr commented Jan 27, 2025

When we started to expand ~ in environment variables (#259), we accidentally added shell escaping.

This PR fixes the issue, by making sure that env variable values are never shell-escaped, and adds a few more specific tests.

@vext01 This is hopefully "good enough" to avoid the problem you were seeing.

smarr added 3 commits January 27, 2025 15:49
- move function out of class and add dedicated direct test

Signed-off-by: Stefan Marr <[email protected]>
@smarr smarr added the Bug label Jan 27, 2025
@coveralls
Copy link

Coverage Status

coverage: 84.46% (-0.03%) from 84.488%
when pulling ab05d81 on quoting-env-strings
into 3b0bffe on master.

@vext01
Copy link
Contributor

vext01 commented Jan 28, 2025

I can confirm that this fixes the issue I was seeing.

@smarr smarr merged commit dd85609 into master Jan 28, 2025
13 of 14 checks passed
@smarr smarr deleted the quoting-env-strings branch January 28, 2025 12:03
@smarr
Copy link
Owner Author

smarr commented Jan 28, 2025

@vext01 great. Thanks for checking!

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

Successfully merging this pull request may close these issues.

3 participants