more robust adhoc shell script: work with Isabelle_System.export_isabelle_identifier;
--- a/src/Pure/General/ssh.scala Tue Sep 13 12:30:37 2022 +0000
+++ b/src/Pure/General/ssh.scala Tue Sep 13 22:36:41 2022 +0200
@@ -170,7 +170,8 @@
settings: Boolean = true,
strict: Boolean = true
): Process_Result = {
- val args1 = Bash.string(host) + " env " + Bash.string("USER_HOME=\"$HOME\"") + " " + cmd_line
+ val args1 =
+ Bash.string(host) + " export " + Bash.string("USER_HOME=\"$HOME\"") + "\n" + cmd_line
run_command("ssh", args = args1, progress_stdout = progress_stdout,
progress_stderr = progress_stderr, strict = strict)
}