-
Notifications
You must be signed in to change notification settings - Fork 187
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
Spaces in environment variables lead to ProcessExecutionError #456
Comments
I should add I've been using plumbum 1.6.7., 1.6.6 is also affected. |
gsimbr
added a commit
to gsimbr/plumbum
that referenced
this issue
Aug 1, 2019
* For ParamikoMachine and SshMachine, shell escape environment variables in order to not run into ProcessExecutionErrors when using environment variables with spaces and special characters
gsimbr
added a commit
to gsimbr/plumbum
that referenced
this issue
Aug 1, 2019
* For ParamikoMachine and SshMachine, shell escape environment variables in order to not run into ProcessExecutionErrors when using environment variables with spaces and special characters
henryiii
pushed a commit
that referenced
this issue
Aug 1, 2019
* Refactor implementation for shell escaping * Use Shquote from the standard library as of python3.3, fallback to legacy implementation in older versions. * Improve shell-escaping of env variables (#456) * For ParamikoMachine and SshMachine, shell escape environment variables in order to not run into ProcessExecutionErrors when using environment variables with spaces and special characters * Add test for env variables with special chars
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using environment variables with spaces, the remote machines are unable to execute any command given.
The problem can e.g. reproduced when adapting the unit tests in test_remote.py:
where I added a space in the "lala" string, which yields
The usecase where we stumbled upon this problem was when using the environment variable
LDFLAGS="-Wl,-O2 -Wl,--sort-common"
, which yielded a ProcessExecutionError with any given command:This is unexpected behaviour and should ideally be fixed by the library by performing appropriate escaping or at least add an earlier check that this is not supported.
The text was updated successfully, but these errors were encountered: