-
Notifications
You must be signed in to change notification settings - Fork 55
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
Exported environment variables w/quotes break the docker run command #103
Comments
This is a nice finding.
Lines 54 to 59 in 68f0d36
Then the Line 143 in 68f0d36
I am not an expert on TypeScript, but I can provide some insights from Python's perspective (Azure CLI itself is written in Python). Python's
See
Apparently, in |
…s` (#105) * escape by args * remove redundant output * fix with comments * update for comment
…s` (#105) * escape by args * remove redundant output * fix with comments * update for comment
Let's start with my branch of Azure/cli here as the diff from source shows how I enabled logging of the
docker run
command to find the issue: https://github.com/MT-Jacobs/azure-cliThe file I edited is in
src/main.ts
.Anyhow -
If you run Azure CLI commands, you might choose to pass along an environment variable to the
docker run
command like so:However, if the variable has quotes in it - like can often happen if you, say, supplied a commit message for a revert in Github - you get the following:
these un-escaped quotes break parsing of the
docker run
command and results in a misleading message:Environment variables need to be properly escaped. The issue is in this area of the script, I believe:
The text was updated successfully, but these errors were encountered: