fix shellRunSingleCommandImp

This commit is contained in:
Bob Liu 2023-11-09 14:36:23 +08:00
parent 829ad64205
commit 5f8baf6ed1
1 changed files with 0 additions and 10 deletions

View File

@ -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.
}