tuned according to ML version;
authorwenzelm
Sat, 13 Feb 2016 19:52:56 +0100
changeset 62294 30e9ff9be90a
parent 62293 72f6d6fd5853
child 62295 4f2fb9adfae5
tuned according to ML version;
src/Pure/General/file.scala
--- a/src/Pure/General/file.scala	Sat Feb 13 17:27:23 2016 +0100
+++ b/src/Pure/General/file.scala	Sat Feb 13 19:52:56 2016 +0100
@@ -102,8 +102,9 @@
 
   /* shell path (bash) */
 
-  def shell_path(path: Path): String = "'" + standard_path(path) + "'"
-  def shell_path(file: JFile): String = "'" + standard_path(file) + "'"
+  def shell_quote(s: String): String = "'" + s + "'"
+  def shell_path(path: Path): String = shell_quote(standard_path(path))
+  def shell_path(file: JFile): String = shell_quote(standard_path(file))
 
 
   /* directory content */