summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/console.c b/console.c
index 28b1238cc..005c31428 100644
--- a/console.c
+++ b/console.c
@@ -1091,6 +1091,12 @@ void IConsoleCmdExec(const char *cmdstr)
case '"': /* Tokens enclosed in "" are one token */
longtoken = !longtoken;
break;
+ case '\\': /* Escape character for "" */
+ if (cmdptr[1] == '"' && tstream_i + 1 < lengthof(tokenstream)) {
+ tokenstream[tstream_i++] = *++cmdptr;
+ break;
+ }
+ /* fallthrough */
default: /* Normal character */
tokenstream[tstream_i++] = *cmdptr;