src/Pure/System/bash.scala
changeset 73906 f627ffab387b
parent 73904 51f510517aa0
child 73911 a8c5ee444991
equal deleted inserted replaced
73905:0dd54d6c974a 73906:f627ffab387b
    57       cmd.add("/usr/bin/env")
    57       cmd.add("/usr/bin/env")
    58       cmd.add("bash")
    58       cmd.add("bash")
    59     }
    59     }
    60     cmd.add("-c")
    60     cmd.add("-c")
    61     cmd.add("kill -" + signal + " -" + group_pid)
    61     cmd.add("kill -" + signal + " -" + group_pid)
    62     isabelle.setup.Isabelle_Env.exec_process(cmd).ok
    62     isabelle.setup.Environment.exec_process(cmd, null, null, false).ok
    63   }
    63   }
    64 
    64 
    65   def process(script: String,
    65   def process(script: String,
    66       cwd: JFile = null,
    66       cwd: JFile = null,
    67       env: JMap[String, String] = Isabelle_System.settings(),
    67       env: JMap[String, String] = Isabelle_System.settings(),
    92 
    92 
    93     private val script_file: JFile = Isabelle_System.tmp_file("bash_script")
    93     private val script_file: JFile = Isabelle_System.tmp_file("bash_script")
    94     File.write(script_file, winpid_script)
    94     File.write(script_file, winpid_script)
    95 
    95 
    96     private val proc =
    96     private val proc =
    97       isabelle.setup.Isabelle_Env.process_builder(
    97       isabelle.setup.Environment.process_builder(
    98         JList.of(File.platform_path(Path.variable("ISABELLE_BASH_PROCESS")),
    98         JList.of(File.platform_path(Path.variable("ISABELLE_BASH_PROCESS")),
    99           File.standard_path(timing_file), "bash", File.standard_path(script_file)),
    99           File.standard_path(timing_file), "bash", File.standard_path(script_file)),
   100         cwd = cwd, env = env, redirect = redirect).start()
   100         cwd, env, redirect).start()
   101 
   101 
   102 
   102 
   103     // channels
   103     // channels
   104 
   104 
   105     val stdin: BufferedWriter =
   105     val stdin: BufferedWriter =