From a23d903a128a9c833cbddc70961da4119057074e Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Tue, 22 Mar 2016 16:47:16 +0100 Subject: [PATCH] Fix escaping of % in bash code strings --- bash_completions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completions.go b/bash_completions.go index 60336f3..54933b0 100644 --- a/bash_completions.go +++ b/bash_completions.go @@ -22,7 +22,7 @@ func preamble(out io.Writer, name string) error { if err != nil { return err } - _, err = fmt.Fprintf(out, ` + _, err = fmt.Fprint(out, ` __debug() { if [[ -n ${BASH_COMP_DEBUG_FILE} ]]; then