summaryrefslogtreecommitdiff
path: root/bash.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 03:17:02 -0500
committerJeff Carr <[email protected]>2025-09-09 03:17:02 -0500
commitb8cafe1bd3b0dbb8fd33bea4c806541ac7932e66 (patch)
tree848421008ac6d7efb6154b3b831ef5a546dcc3a0 /bash.go
parent4d2f24f64e894c4af978fc8d1dd8886e897dec3d (diff)
NEVER DO THIS. adding ' around that var made things break
Diffstat (limited to 'bash.go')
-rw-r--r--bash.go2
1 files changed, 1 insertions, 1 deletions
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")