allow multiline script;
authorwenzelm
Wed, 05 Oct 2016 11:05:41 +0200
changeset 64047 1013cf043274
parent 64046 5a6a7401c48b
child 64048 b0c52944978e
allow multiline script;
src/Pure/Tools/build_history.scala
--- a/src/Pure/Tools/build_history.scala	Wed Oct 05 10:43:52 2016 +0200
+++ b/src/Pure/Tools/build_history.scala	Wed Oct 05 11:05:41 2016 +0200
@@ -69,8 +69,9 @@
     /* invoke isabelle tools */
 
     def bash(script: String, redirect: Boolean = false, echo: Boolean = false): Process_Result =
-      Isabelle_System.bash("env ISABELLE_IDENTIFIER=" + File.bash_string(isabelle_identifier) +
-        " " + script, cwd = hg.root.file, env = null, redirect = redirect,
+      Isabelle_System.bash(
+        "export ISABELLE_IDENTIFIER=" + File.bash_string(isabelle_identifier) + "\n" + script,
+        env = null, cwd = hg.root.file, redirect = redirect,
         progress_stdout = output_if(echo, _), progress_stderr = output_if(echo, _))
 
     def isabelle(cmdline: String, redirect: Boolean = false, echo: Boolean = false): Process_Result =