aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. J. Fromberger <michael.j.fromberger@gmail.com>2018-12-01 10:09:45 -0800
committerM. J. Fromberger <michael.j.fromberger@gmail.com>2018-12-01 10:09:45 -0800
commitb625bb4113c0c4bd0bb9d96802240f2f97cbf214 (patch)
tree600f39d1d1f3db985f8050af1c64ee5bbae23e20
parent770891e827f86a200e5b53e2353ac63b1c3851c7 (diff)
downloadgo-creachadair-shell-b625bb4113c0c4bd0bb9d96802240f2f97cbf214.tar.gz
Remove ^ from the list of quote-requiring characters.
In retrospect, when we added & in commit d1f7d07f, we should have been replacing ^ with it instead. It looks like I typo'd the list.
-rw-r--r--shell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell.go b/shell.go
index 287b60b..dc84b75 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).