From 011b889ba7fe4ac87518c0c4990ab9483f03aedb Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Thu, 3 Jan 2019 20:00:59 +0200 Subject: [PATCH] pkg/process: properly quote arguments (#963) --- pkg/process/exec_conf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/process/exec_conf.go b/pkg/process/exec_conf.go index b5c566edd..6e7d197b0 100644 --- a/pkg/process/exec_conf.go +++ b/pkg/process/exec_conf.go @@ -78,7 +78,7 @@ func SaveConfig(flagset *pflag.FlagSet, outfile string, overrides map[string]int switch f.Value.Type() { case "string": // save ourselves 250+ lines of code and just double quote strings - fmt.Fprintf(w, "\"%s\"\n", value) + fmt.Fprintf(w, "%q\n", value) default: //assume that everything else doesn't have fancy control characters fmt.Fprintf(w, "%s\n", value)