fix shellRunSingleCommandImp
This commit is contained in:
parent
829ad64205
commit
5f8baf6ed1
|
@ -199,22 +199,12 @@ void shellRunSingleCommandImp(char *command) {
|
||||||
bool printMode = false;
|
bool printMode = false;
|
||||||
|
|
||||||
if ((sptr = strstr(command, ">>")) != NULL) {
|
if ((sptr = strstr(command, ">>")) != NULL) {
|
||||||
cptr = strstr(command, ";");
|
|
||||||
if (cptr != NULL) {
|
|
||||||
*cptr = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
fname = sptr + 2;
|
fname = sptr + 2;
|
||||||
while (*fname == ' ') fname++;
|
while (*fname == ' ') fname++;
|
||||||
*sptr = '\0';
|
*sptr = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sptr = strstr(command, "\\G")) != NULL) {
|
if ((sptr = strstr(command, "\\G")) != NULL) {
|
||||||
cptr = strstr(command, ";");
|
|
||||||
if (cptr != NULL) {
|
|
||||||
*cptr = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
*sptr = '\0';
|
*sptr = '\0';
|
||||||
printMode = true; // When output to a file, the switch does not work.
|
printMode = true; // When output to a file, the switch does not work.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue