Skip to content

Commit d6f4ed7

Browse files
author
Shlomi Noach
authored
Merge pull request #553 from github/unquote-interactive-command
support quoted values in interactive commands
2 parents bf4b04f + 9ae9cef commit d6f4ed7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go/logic/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ func (this *Server) applyServerCommand(command string, writer *bufio.Writer) (pr
130130
arg := ""
131131
if len(tokens) > 1 {
132132
arg = strings.TrimSpace(tokens[1])
133+
if unquoted, err := strconv.Unquote(arg); err == nil {
134+
arg = unquoted
135+
}
133136
}
134137
argIsQuestion := (arg == "?")
135138
throttleHint := "# Note: you may only throttle for as long as your binary logs are not purged\n"

0 commit comments

Comments
 (0)