Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

refactor(process): remove redundant sh -c wrapping in spawn_detached (#653)

Maximilian Roos2dbb166afb55
diff --git a/src/commands/process.rs b/src/commands/process.rs
index b92b0912a..d16032aa4 100644
--- a/src/commands/process.rs
+++ b/src/commands/process.rs
@@ -105,7 +105,7 @@ fn spawn_detached_unix(
None => command.to_string(),
};
- let shell_cmd = format!("sh -c {} &", shell_escape::escape(full_command.into()));
+ let shell_cmd = format!("{} &", full_command);
// Log only the operation identifier, not the full command (which may contain context_json
// with user data that shouldn't appear in debug logs)