tuned;
authorwenzelm
Thu, 02 Mar 2023 15:39:21 +0100
changeset 77480 1082f0d6628b
parent 77479 abc9706a4ca2
child 77481 1e10689ee184
tuned;
src/Pure/ML/ml_process.scala
--- a/src/Pure/ML/ml_process.scala	Thu Mar 02 15:39:14 2023 +0100
+++ b/src/Pure/ML/ml_process.scala	Thu Mar 02 15:39:21 2023 +0100
@@ -117,9 +117,10 @@
     bash_env.put("ISABELLE_TMP", File.standard_path(isabelle_tmp))
     bash_env.put("POLYSTATSDIR", isabelle_tmp.getAbsolutePath)
 
-    val policy = options.string("ML_process_policy") match { case "" => "" case s => s + " " }
+    val process_policy = options.string("ML_process_policy")
+    val process_prefix = if_proper(process_policy, process_policy + " ")
 
-    Bash.process(policy + """"$ML_HOME/poly" -q """ + Bash.strings(bash_args),
+    Bash.process(process_prefix + """"$ML_HOME/poly" -q """ + Bash.strings(bash_args),
       cwd = cwd,
       env = bash_env,
       redirect = redirect,