mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
Don't print a CR, if the command line is from a batch file and starts with a '@'.
svn path=/trunk/; revision=18962
This commit is contained in:
parent
8bbbecaa87
commit
a5ad40f6c0
1 changed files with 7 additions and 1 deletions
|
@ -1282,6 +1282,7 @@ ProcessInput (BOOL bFlag)
|
||||||
LPCTSTR tmp;
|
LPCTSTR tmp;
|
||||||
BOOL bEchoThisLine;
|
BOOL bEchoThisLine;
|
||||||
BOOL bModeSetA;
|
BOOL bModeSetA;
|
||||||
|
BOOL bIsBatch;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -1294,7 +1295,12 @@ ProcessInput (BOOL bFlag)
|
||||||
ReadCommand (readline, CMDLINE_LENGTH);
|
ReadCommand (readline, CMDLINE_LENGTH);
|
||||||
ip = readline;
|
ip = readline;
|
||||||
bEchoThisLine = FALSE;
|
bEchoThisLine = FALSE;
|
||||||
|
bIsBatch = FALSE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bIsBatch = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* skip leading blanks */
|
/* skip leading blanks */
|
||||||
while ( _istspace(*ip) )
|
while ( _istspace(*ip) )
|
||||||
|
@ -1403,7 +1409,7 @@ ProcessInput (BOOL bFlag)
|
||||||
if (*commandline)
|
if (*commandline)
|
||||||
{
|
{
|
||||||
ParseCommandLine (commandline);
|
ParseCommandLine (commandline);
|
||||||
if (bEcho && !bIgnoreEcho)
|
if (bEcho && !bIgnoreEcho && (!bIsBatch || bEchoThisLine))
|
||||||
ConOutChar ('\n');
|
ConOutChar ('\n');
|
||||||
bIgnoreEcho = FALSE;
|
bIgnoreEcho = FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue