remote: Fix terminal crash on Elvish shell (#41893)

This commit is contained in:
Smit Barmase
2025-11-04 17:48:42 +05:30
committed by GitHub
parent a827f25d00
commit 95feefc1cf
4 changed files with 49 additions and 10 deletions
+4 -2
View File
@@ -54,7 +54,8 @@ impl ShellBuilder {
| ShellKind::Csh
| ShellKind::Tcsh
| ShellKind::Rc
| ShellKind::Xonsh => {
| ShellKind::Xonsh
| ShellKind::Elvish => {
let interactivity = self.interactive.then_some("-i ").unwrap_or_default();
format!(
"{PROGRAM} {interactivity}-c '{command_to_use_in_label}'",
@@ -93,7 +94,8 @@ impl ShellBuilder {
| ShellKind::Csh
| ShellKind::Tcsh
| ShellKind::Rc
| ShellKind::Xonsh => {
| ShellKind::Xonsh
| ShellKind::Elvish => {
combined_command.insert(0, '(');
combined_command.push_str(") </dev/null");
}