3
0
mirror of https://github.com/larvit/fejkdata.git synced 2026-11-21 22:06:22 +01:00

Name both quotings when a shell splits a template

This commit is contained in:
2026-09-18 20:39:54 +02:00
parent fb5a5ff38f
commit 57b2d182c7
+1 -1
View File
@@ -491,7 +491,7 @@ func run(args []string, stdout, stderr io.Writer) int {
func templateSplit(paths []string) string { func templateSplit(paths []string) string {
for _, p := range paths { for _, p := range paths {
if strings.Contains(p, "{") { if strings.Contains(p, "{") {
return `; a template's spaces split the argument, so wrap the whole argument in "…"` return `; a template's spaces split the argument, so wrap the whole argument in "…", or in '…' where it carries double quotes`
} }
} }
return "" return ""