From 9db1ae8b5410e1f854d86f128954e050ec24ca7f Mon Sep 17 00:00:00 2001 From: JY Tan Date: Thu, 5 Feb 2026 16:55:55 -0800 Subject: [PATCH] fix: preserve argument boundaries when passing commands via `--` --- cmd/fence/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/fence/main.go b/cmd/fence/main.go index 9fd4ddd..790ad21 100644 --- a/cmd/fence/main.go +++ b/cmd/fence/main.go @@ -136,7 +136,7 @@ func runCommand(cmd *cobra.Command, args []string) error { case cmdString != "": command = cmdString case len(args) > 0: - command = strings.Join(args, " ") + command = sandbox.ShellQuote(args) default: return fmt.Errorf("no command specified. Use -c or provide command arguments") }