summaryrefslogtreecommitdiffstats
path: root/cmd/goctl
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2015-07-10 17:21:24 +0000
committerBrian Cully <bjc@kublai.com>2015-07-10 17:21:24 +0000
commite659a670dded350f45da7b9c0924a925a7443510 (patch)
treeabdab6087d10d283a0192674ab8eab4d44f799d5 /cmd/goctl
parent9c6e5614103d03bb7a12db96b1017aa6565e7784 (diff)
downloadgoctl-e659a670dded350f45da7b9c0924a925a7443510.tar.gz
goctl-e659a670dded350f45da7b9c0924a925a7443510.zip
Use NUL as field separator.
This way spaces can be sent as useful data to commands.
Diffstat (limited to 'cmd/goctl')
-rw-r--r--cmd/goctl/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/goctl/main.go b/cmd/goctl/main.go
index 9a8e01c..395a643 100644
--- a/cmd/goctl/main.go
+++ b/cmd/goctl/main.go
@@ -26,7 +26,7 @@ func main() {
}
defer c.Close()
- goctl.Write(c, []byte(strings.Join(flag.Args(), " ")))
+ goctl.Write(c, []byte(strings.Join(flag.Args(), "\u0000")))
if buf, err := goctl.Read(c); err != nil {
log.Fatalf("Error reading response from command: %s.", err)
} else {