Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Issue 2089403002: infra/go: Stop extra evaluation of env.py output. (Closed)

Created:
4 years, 6 months ago by mithro
Modified:
4 years, 6 months ago
Reviewers:
Vadim Sh., nodir, M-A Ruel
CC:
chromium-reviews, infra-reviews+infra_chromium.org
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

infra/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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M go/env.py View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
mithro
Hi nodir, This should fix the problem you discovered after I landed https://codereview.chromium.org/2071243002/ It should ...
4 years, 6 months ago (2016-06-23 04:19:06 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089403002/1
4 years, 6 months ago (2016-06-23 04:19:26 UTC) #4
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. CQ run can only be started ...
4 years, 6 months ago (2016-06-23 04:19:28 UTC) #6
M-A Ruel
lgtm
4 years, 6 months ago (2016-06-23 13:16:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089403002/1
4 years, 6 months ago (2016-06-23 15:23:19 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/infra/infra/+/aa0508ab31e17cf6e8310d8908d4f8ce0b2798a0
4 years, 6 months ago (2016-06-23 15:37:37 UTC) #11
nodir
4 years, 6 months ago (2016-06-23 18:58:15 UTC) #12
Message was sent while issue was closed.
thanks, this fixed my problem

Powered by Google App Engine
This is Rietveld 408576698