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:
parent
1acc1a459a
commit
56c3a4be9c
1 changed files with 9 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue