src/Pure/ML/ml_process.scala
changeset 77320 7a6fa60298cd
parent 76729 b045b40a65cc
child 77412 f37b02353519
--- a/src/Pure/ML/ml_process.scala	Mon Feb 20 21:40:52 2023 +0100
+++ b/src/Pure/ML/ml_process.scala	Mon Feb 20 21:47:25 2023 +0100
@@ -117,9 +117,9 @@
     bash_env.put("ISABELLE_TMP", File.standard_path(isabelle_tmp))
     bash_env.put("POLYSTATSDIR", isabelle_tmp.getAbsolutePath)
 
-    Bash.process(
-      options.string("ML_process_policy") + """ "$ML_HOME/poly" -q """ +
-        Bash.strings(bash_args),
+    val policy = options.string("ML_process_policy") match { case "" => "" case s => s + " " }
+
+    Bash.process(policy + """"$ML_HOME/poly" -q """ + Bash.strings(bash_args),
       cwd = cwd,
       env = bash_env,
       redirect = redirect,