From 9ae9cef17a918319c75be547943588e869f751d9 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Sun, 25 Feb 2018 19:17:37 +0200 Subject: [PATCH] support quoted values in interactive commands --- go/logic/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/logic/server.go b/go/logic/server.go index b9903e2..919f178 100644 --- a/go/logic/server.go +++ b/go/logic/server.go @@ -130,6 +130,9 @@ func (this *Server) applyServerCommand(command string, writer *bufio.Writer) (pr arg := "" if len(tokens) > 1 { arg = strings.TrimSpace(tokens[1]) + if unquoted, err := strconv.Unquote(arg); err == nil { + arg = unquoted + } } argIsQuestion := (arg == "?") throttleHint := "# Note: you may only throttle for as long as your binary logs are not purged\n"