From b8cafe1bd3b0dbb8fd33bea4c806541ac7932e66 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 Sep 2025 03:17:02 -0500 Subject: NEVER DO THIS. adding ' around that var made things break --- bash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash.go') diff --git a/bash.go b/bash.go index 908cde7..118a635 100644 --- a/bash.go +++ b/bash.go @@ -96,7 +96,7 @@ func makeBashCompletionText(argname string) string { out += fmt.Sprintf(" all=${COMP_WORDS[@]}\n") out += fmt.Sprintf("\n") out += fmt.Sprintf(" # this is where we generate the go-arg output\n") - out += fmt.Sprintf(" GOARGS=$(%s --auto-complete \\'$prev\\' \\'$cur\\' $all)\n", argname) + out += fmt.Sprintf(" GOARGS=$(%s --auto-complete $prev \\'$cur\\' $all)\n", argname) out += fmt.Sprintf("\n") out += fmt.Sprintf(" # this compares the command line input from the user\n") out += fmt.Sprintf(" # to whatever strings we output\n") -- cgit v1.2.3