Browse Source

gcmd.py: more comment

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60635 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 11 years ago
parent
commit
3d2b8c944a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/wxpython/core/gcmd.py

+ 2 - 0
gui/wxpython/core/gcmd.py

@@ -175,6 +175,8 @@ class Popen(subprocess.Popen):
             # should also be included. A quick test revealed that only ^|& need
             # should also be included. A quick test revealed that only ^|& need
             # to be escaped.
             # to be escaped.
             for i in range(2, len(args)):
             for i in range(2, len(args)):
+                # "^" must be the first character in the list to avoid double
+                # escaping.
                 for c in ("^", "|", "&"):
                 for c in ("^", "|", "&"):
                     if c in args[i]:
                     if c in args[i]:
                         if "=" in args[i]:
                         if "=" in args[i]: