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

Issue 9427002: Fix quoting shell args on Windows (Closed)

Created:
8 years, 10 months ago by scottmg
Modified:
8 years, 10 months ago
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Fix quoting shell args on Windows Fixes test/defines-escaping and a couple others. (Windows shell quoting: Not The Best Design Ever.) Committed: https://code.google.com/p/gyp/source/detail?r=1215

Patch Set 1 #

Patch Set 2 : remove unrelated change #

Patch Set 3 : typo in comment #

Total comments: 8

Patch Set 4 : #

Patch Set 5 : #

Total comments: 12

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -7 lines) Patch
M pylib/gyp/generator/ninja.py View 1 2 3 4 5 5 chunks +12 lines, -7 lines 0 comments Download
A pylib/gyp/msvs_emulation.py View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scottmg
I'm sure both of you will be ever so interested in the intricacies of cmd ...
8 years, 10 months ago (2012-02-20 06:02:38 UTC) #1
Nico
https://chromiumcodereview.appspot.com/9427002/diff/3001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9427002/diff/3001/pylib/gyp/generator/ninja.py#newcode58 pylib/gyp/generator/ninja.py:58: windows_quoter_regex = re.compile(r'(\\*)"') grit is very slow because it ...
8 years, 10 months ago (2012-02-20 18:33:22 UTC) #2
scottmg
https://chromiumcodereview.appspot.com/9427002/diff/3001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py (right): https://chromiumcodereview.appspot.com/9427002/diff/3001/pylib/gyp/generator/ninja.py#newcode58 pylib/gyp/generator/ninja.py:58: windows_quoter_regex = re.compile(r'(\\*)"') On 2012/02/20 18:33:22, Nico wrote: > ...
8 years, 10 months ago (2012-02-20 22:30:48 UTC) #3
Nico
lgtm with comments. Everything except the docstrings and test question are optional. http://codereview.chromium.org/9427002/diff/6001/pylib/gyp/generator/ninja.py File pylib/gyp/generator/ninja.py ...
8 years, 10 months ago (2012-02-20 23:17:49 UTC) #4
scottmg
8 years, 10 months ago (2012-02-21 00:14:44 UTC) #5
https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/generator/...
File pylib/gyp/generator/ninja.py (right):

https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/generator/...
pylib/gyp/generator/ninja.py:181: def QuoteShellArgument(self, arg):
On 2012/02/20 23:17:49, Nico wrote:
> nit: I would've made flavor a parameter instead

Done.

https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/msvs_emula...
File pylib/gyp/msvs_emulation.py (right):

https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/msvs_emula...
pylib/gyp/msvs_emulation.py:4: 
On 2012/02/20 23:17:49, Nico wrote:
> Needs module docstring

Done.

https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/msvs_emula...
pylib/gyp/msvs_emulation.py:9: def QuoteCmdExeArgument(arg):
On 2012/02/20 23:17:49, Nico wrote:
> need function docstring

Done.

https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/msvs_emula...
pylib/gyp/msvs_emulation.py:10: # See http://goo.gl/cuFbX and
http://goo.gl/dhPnp including the comment
On 2012/02/20 23:17:49, Nico wrote:
> nit: I wouldn't use a URL shortener

The urls were longer than 80 so it looked yucky.

https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/msvs_emula...
pylib/gyp/msvs_emulation.py:21: # Now, we need to escape some things that are
actually for the shell. %'s
On 2012/02/20 23:17:49, Nico wrote:
> The '%' handling happens further down, so I wouldn't mention it in this
comment.

Done.

https://chromiumcodereview.appspot.com/9427002/diff/6001/pylib/gyp/msvs_emula...
pylib/gyp/msvs_emulation.py:33: return '"' + tmp + '"'
On 2012/02/20 23:17:49, Nico wrote:
> I assume all this is covered by existing tests.

Yes, this change is just trying to get existing tests working
("defines-escaping" is pretty thorough). I'll add new tests if I find other
things that aren't tested, as I get farther.

Powered by Google App Engine
This is Rietveld 408576698