From 71132e3d357c753619d65004bf6fc0a7fe427bb8 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sun, 21 Aug 2016 13:51:04 +0200 Subject: [PATCH] escape dollar chars in strings not escape the char, but trigger the quotes, actually --- source/src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index df47376e..1f527ae0 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -1483,7 +1483,7 @@ const char *escapestring(const char *s, bool force, bool noquotes) static int stridx = 0; if(noquotes) force = false; if(!s) return force ? "\"\"" : ""; - if(!force && !*(s + strcspn(s, "\"/\\;()[] \f\t\r\n"))) return s; + if(!force && !*(s + strcspn(s, "\"/\\;()[] \f\t\r\n$"))) return s; stridx = (stridx + 1) % 3; vector &buf = strbuf[stridx]; buf.setsize(0);