Index: tools/gn/bin/gn-format.py |
diff --git a/tools/gn/bin/gn-format.py b/tools/gn/bin/gn-format.py |
index c835753eefbdb894a02254994195e18dc9a3a1ff..4769640297f77e244ef868704213300275b399e4 100644 |
--- a/tools/gn/bin/gn-format.py |
+++ b/tools/gn/bin/gn-format.py |
@@ -38,7 +38,7 @@ def main(): |
p = subprocess.Popen([binary, 'format', '--stdin'], |
stdout=subprocess.PIPE, stderr=subprocess.PIPE, |
stdin=subprocess.PIPE, startupinfo=startupinfo, |
- universal_newlines=True) |
+ shell=True, universal_newlines=True) |
stdout, stderr = p.communicate(input=text) |
if p.returncode != 0: |
print 'Formatting failed, please report to gn-dev@chromium.org.' |