[cfe-dev] interesting ccc issue

Anders Carlsson andersca at mac.com
Tue Feb 5 16:20:18 PST 2008


5 feb 2008 kl. 16.16 skrev Brooks Davis:
>
> I'm not sure what all issues involved in re-escaping the '"'  
> characters
> would be would be, but hopefully someone with stronger python-foo that
> mine will have some ideas.
>

I have

Index: utils/ccc
===================================================================
--- utils/ccc	(revision 46776)
+++ utils/ccc	(working copy)
@@ -19,7 +19,7 @@
      sys.exit(1)

  def run(args):
-    cmd = ' '.join(args)
+    cmd = ' '.join(args).replace("\"", "\\\"");
      print >> sys.stderr, cmd
      code = os.system(cmd)
      if code > 255:

in my tree and it seems to fix the issue, I just haven't committed it  
yet.

Anders



More information about the cfe-dev mailing list