1
0
Fork 0

Make the shell's internal run loop more like the command prompt run loop. Fixes CALLed batch files when executed in subshells, such as with Norton/Volkov Commander. Reference SourceForge bug #394.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3885
This commit is contained in:
ripsaw8080 2015-01-06 18:32:47 +00:00
parent 1acc1a459a
commit 56c3a4be9c

View file

@ -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) {