strict bash invocation: proper error checking;
authorwenzelm
Wed, 02 Jan 2019 21:18:35 +0100
changeset 69573 c7a69b6cd405
parent 69572 09a6a7c04b45
child 69574 b4ea943ce0b7
strict bash invocation: proper error checking;
src/Pure/ML/ml_process.scala
--- a/src/Pure/ML/ml_process.scala	Wed Jan 02 20:20:01 2019 +0100
+++ b/src/Pure/ML/ml_process.scala	Wed Jan 02 21:18:35 2019 +0100
@@ -88,7 +88,7 @@
 
     // options
     val isabelle_process_options = Isabelle_System.tmp_file("options")
-    Isabelle_System.bash("chmod 600 " + File.bash_path(File.path(isabelle_process_options)))
+    Isabelle_System.bash("chmod 600 " + File.bash_path(File.path(isabelle_process_options))).check
     File.write(isabelle_process_options, YXML.string_of_body(options.encode))
     val env_options = Map("ISABELLE_PROCESS_OPTIONS" -> File.standard_path(isabelle_process_options))
     val eval_options = if (heaps.isEmpty) Nil else List("Options.load_default ()")