Fixed Platform escapeForShell to escape backslashes themselves.
authorBrian T. Rice <briantrice@gmail.com>
Wed, 14 Apr 2010 15:01:33 +0000 (08:01 -0700)
committerBrian T. Rice <briantrice@gmail.com>
Wed, 14 Apr 2010 15:01:33 +0000 (08:01 -0700)
src/lib/platform.slate

index 2f6d7d0..1630648 100644 (file)
@@ -46,7 +46,7 @@ s@(String traits) escapeForShell
 [
   [| :result |
    s do: [| :char |
-     (';<>*|`&$!#()[]{}:\'"' includes: char) ifTrue: [result nextPut: $\\].
+     (';<>*|`&$!#()[]{}:\\\'"' includes: char) ifTrue: [result nextPut: $\\].
      result nextPut: char
    ]] writingAs: s
 ].