diff options
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index c6b9dface..c5d0f760e 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2875,7 +2875,7 @@ bslashquote(const char *s, char **e, int instring) (isset(MAGICEQUALSUBST) && (u[-1] == '=' || u[-1] == ':')) || (*u == '~' && isset(EXTENDEDGLOB))) && (!instring || - (isset(BANGHIST) && *u == (char)bangchar) || + (isset(BANGHIST) && *u == (char)bangchar && instring != 1) || (instring == 2 && (*u == '$' || *u == '`' || *u == '\"' || *u == '\\')) || (instring == 1 && *u == '\''))) { |