aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJille Timmermans <bitbucket@junk.quis.cx>2018-12-01 17:02:29 +0000
committerMichael Fromberger <michael.j.fromberger+bit@gmail.com>2018-12-01 17:02:29 +0000
commitd1f7d07f50f1fdcfd7ebea2566176055729c48b6 (patch)
tree595c33dd8bab739ddcb07928009a8738458c5d11
parenta37ff396dbd8cd3e0420f5c33ac8e17f826e6d5e (diff)
downloadgo-creachadair-shell-d1f7d07f50f1fdcfd7ebea2566176055729c48b6.tar.gz
Merged in JilleT/shell/JilleT/always-quote--1543682744303 (pull request #1)
Always quote '&'. This character was accidentally omitted from the list of characters requiring quotation.
-rw-r--r--shell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.go b/shell.go
index 1a3ef86..287b60b 100644
--- a/shell.go
+++ b/shell.go
@@ -25,7 +25,7 @@ import (
// These characters must be quoted to escape special meaning. This list
// doesn't include the single quote.
-const mustQuote = "|^;<>()$\\\"\t\n`"
+const mustQuote = "|^;&<>()$\\\"\t\n`"
// These characters should be quoted to escape special meaning, since in some
// contexts they are special (e.g., "x=y" in command position, "*" for globs).