From 5f8baf6ed1660b70cc65be90261d5bacf7070c77 Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Thu, 9 Nov 2023 14:36:23 +0800 Subject: [PATCH] fix shellRunSingleCommandImp --- tools/shell/src/shellEngine.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tools/shell/src/shellEngine.c b/tools/shell/src/shellEngine.c index 3b150230e7..5ccbc8d2ab 100644 --- a/tools/shell/src/shellEngine.c +++ b/tools/shell/src/shellEngine.c @@ -199,22 +199,12 @@ void shellRunSingleCommandImp(char *command) { bool printMode = false; if ((sptr = strstr(command, ">>")) != NULL) { - cptr = strstr(command, ";"); - if (cptr != NULL) { - *cptr = '\0'; - } - fname = sptr + 2; while (*fname == ' ') fname++; *sptr = '\0'; } if ((sptr = strstr(command, "\\G")) != NULL) { - cptr = strstr(command, ";"); - if (cptr != NULL) { - *cptr = '\0'; - } - *sptr = '\0'; printMode = true; // When output to a file, the switch does not work. }