Chromium Code Reviews
Descriptioninfra/go: Stop extra evaluation of env.py output.
Currently the output of env.py is quoted with double quotes. This means values
inside the string will be evaluated when doing `eval $(env.py)`.
This would mean things would go horrible wrong if you had dollar symbols,
backticks or other such special characters in your path. This was discovered by
the new PS1 tagging addition added in
https://codereview.chromium.org/2071243002/, as prompts frequently have such
syntax in them.
This changes prevents that from occurring by using single quotes. It also
escapes any single quotes which already exist in the string.
Committed: https://chromium.googlesource.com/infra/infra/+/aa0508ab31e17cf6e8310d8908d4f8ce0b2798a0
Patch Set 1 #Messages
Total messages: 12 (5 generated)
|