aboutsummaryrefslogtreecommitdiff
path: root/acid.go
diff options
context:
space:
mode:
Diffstat (limited to 'acid.go')
-rw-r--r--acid.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/acid.go b/acid.go
index 2c59c38..17ca23b 100644
--- a/acid.go
+++ b/acid.go
@@ -102,7 +102,7 @@ var shellFuncs = ttemplate.FuncMap{
"quote": func(word string) string {
// History expansion is annoying, don't let it cut us.
if strings.IndexRune(word, '!') >= 0 {
- return "'" + strings.ReplaceAll(word, "'", `'"'"'`) + "'"
+ return "'" + strings.ReplaceAll(word, "'", `'\''`) + "'"
}
const special = "$`\"\\"