diff --git a/reactos/subsys/system/cmd/cmd.c b/reactos/subsys/system/cmd/cmd.c index a05237953c2..3c4edfb6901 100644 --- a/reactos/subsys/system/cmd/cmd.c +++ b/reactos/subsys/system/cmd/cmd.c @@ -597,9 +597,12 @@ DoCommand (LPTSTR line) } */ - /* Skip over whitespace to rest of line */ - while (_istspace (*rest)) + /* Skip over whitespace to rest of line, exclude 'echo' command */ + if (_tcsicmp (com, _T("echo"))) + { + while (_istspace (*rest)) rest++; + } /* Scan internal command table */ for (cmdptr = cmds;; cmdptr++)