mirror of
https://github.com/reactos/reactos.git
synced 2025-07-16 05:34:05 +00:00
- Ignore special characters in a REM line.
- Make the \n-printing in batch files with ECHO on more consistant with how Windows does it. svn path=/trunk/; revision=39890
This commit is contained in:
parent
58e2d39f21
commit
79c11338fa
2 changed files with 15 additions and 9 deletions
|
@ -285,6 +285,7 @@ BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param, PARSED_COMMAND *Cmd
|
|||
/* Echo batch file line */
|
||||
if (bEcho && Cmd->Type != C_QUIET)
|
||||
{
|
||||
ConOutChar(_T('\n'));
|
||||
PrintPrompt();
|
||||
EchoCommand(Cmd);
|
||||
ConOutChar(_T('\n'));
|
||||
|
@ -292,15 +293,9 @@ BOOL Batch (LPTSTR fullname, LPTSTR firstword, LPTSTR param, PARSED_COMMAND *Cmd
|
|||
|
||||
bc->current = Cmd;
|
||||
ExecuteCommand(Cmd);
|
||||
if (bEcho && !bIgnoreEcho && Cmd->Type != C_QUIET)
|
||||
ConOutChar(_T('\n'));
|
||||
FreeCommand(Cmd);
|
||||
bIgnoreEcho = FALSE;
|
||||
}
|
||||
|
||||
/* Don't print a newline for this command */
|
||||
bIgnoreEcho = TRUE;
|
||||
|
||||
TRACE ("Batch: returns TRUE\n");
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue