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

Issue 8937016: Add a test for escaping of backslashes in list expansion (Closed)

Created:
9 years ago by tony
Modified:
8 years, 11 months ago
Reviewers:
Mark Mentovai
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Add a test for escaping of backslashes in list expansion shlex.split will eat backslash (commonly found in windows paths). Committed: http://code.google.com/p/gyp/source/detail?r=1150

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M test/variables/commands/commands.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M test/variables/commands/commands.gyp.stdout View 1 4 chunks +14 lines, -0 lines 0 comments Download
M test/variables/commands/commands.gyp.ignore-env.stdout View 1 4 chunks +14 lines, -0 lines 0 comments Download
M test/variables/commands/commands.gypd.golden View 1 1 chunk +2 lines, -0 lines 0 comments Download
A test/variables/commands/test.py View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
tony
9 years ago (2011-12-13 23:27:51 UTC) #1
Mark Mentovai
http://codereview.chromium.org/8937016/diff/1/pylib/gyp/input.py File pylib/gyp/input.py (right): http://codereview.chromium.org/8937016/diff/1/pylib/gyp/input.py#newcode739 pylib/gyp/input.py:739: output = shlex.split(str(replacement).replace('\\', '\\\\')) Are you sure that this ...
9 years ago (2011-12-14 17:53:54 UTC) #2
tony
http://codereview.chromium.org/8937016/diff/1/pylib/gyp/input.py File pylib/gyp/input.py (right): http://codereview.chromium.org/8937016/diff/1/pylib/gyp/input.py#newcode739 pylib/gyp/input.py:739: output = shlex.split(str(replacement).replace('\\', '\\\\')) On 2011/12/14 17:53:54, Mark Mentovai ...
9 years ago (2011-12-14 18:41:39 UTC) #3
tony
Oh, the specific case I'm fixing is where a list of inputs is generated and ...
9 years ago (2011-12-14 18:43:26 UTC) #4
Mark Mentovai
I understand that, I’m just pointing out that your proposal fixes one specific case but ...
9 years ago (2011-12-14 18:47:40 UTC) #5
tony
On 2011/12/14 18:47:40, Mark Mentovai wrote: > We agreed (a million years ago) that this ...
9 years ago (2011-12-14 18:51:42 UTC) #6
Mark Mentovai
No, I don’t think non-lists should go through shlex.split. When we came up with this, ...
9 years ago (2011-12-14 18:58:25 UTC) #7
tony
Ok, I've updated the change to just add a unittest so it's more clear that ...
9 years ago (2011-12-14 19:43:02 UTC) #8
tony
Did you not want me to land this test?
9 years ago (2011-12-15 18:20:36 UTC) #9
tony
ping
9 years ago (2011-12-19 18:45:44 UTC) #10
tony
Hi Mark, did you want to review this or should I ask someone else?
8 years, 11 months ago (2012-01-03 17:32:31 UTC) #11
Mark Mentovai
8 years, 11 months ago (2012-01-12 20:58:53 UTC) #12
LGTM

(I’m finally reaching into the vacation backlog.)

Powered by Google App Engine
This is Rietveld 408576698