diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-04-17 01:44:57 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-04-17 01:45:13 +0200 |
commit | 4a23c47a924116b4ac8b8afb68ce1f372fa5c448 (patch) | |
tree | c6d4b404c94ec79af65115d5dc5ac485d92019dd /acid.go | |
parent | b594ff78b22452b1260286f86fc5a40dbf3d38d9 (diff) | |
download | acid-4a23c47a924116b4ac8b8afb68ce1f372fa5c448.tar.gz acid-4a23c47a924116b4ac8b8afb68ce1f372fa5c448.tar.xz acid-4a23c47a924116b4ac8b8afb68ce1f372fa5c448.zip |
Adjust shell quoting
Diffstat (limited to 'acid.go')
-rw-r--r-- | acid.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = "$`\"\\" |