diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 76cdd404..997c8e11 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -265,21 +265,21 @@ void DOS_Shell::ParseLine(char * line) { -void DOS_Shell::RunInternal(void) -{ +void DOS_Shell::RunInternal(void) { char input_line[CMD_MAXLINE] = {0}; - while(bf && bf->ReadLine(input_line)) - { - if (echo) { + while (bf) { + if (bf->ReadLine(input_line)) { + if (echo) { if (input_line[0] != '@') { ShowPrompt(); WriteOut_NoParsing(input_line); WriteOut_NoParsing("\n"); - }; - }; - ParseLine(input_line); + } + } + ParseLine(input_line); + if (echo) WriteOut_NoParsing("\n"); + } } - return; } void DOS_Shell::Run(void) {