https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e3ed502bb67fd6ead237a2e65849d0f6d7b9e29d

commit e3ed502bb67fd6ead237a2e65849d0f6d7b9e29d
Author:     Hermès Bélusca-Maïto <[email protected]>
AuthorDate: Tue Jun 9 00:35:18 2020 +0200
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Wed Aug 19 20:36:04 2020 +0200

    [CMD] Fix the output of the SET command.
---
 base/shell/cmd/set.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/base/shell/cmd/set.c b/base/shell/cmd/set.c
index 3ba2f069cf3..7a4a5d4c408 100644
--- a/base/shell/cmd/set.c
+++ b/base/shell/cmd/set.c
@@ -92,10 +92,13 @@ INT cmd_set(LPTSTR param)
             lpOutput = lpEnv;
             while (*lpOutput)
             {
+                /* Do not display the special '=X:' environment variables */
                 if (*lpOutput != _T('='))
+                {
                     ConOutPuts(lpOutput);
+                    ConOutChar(_T('\n'));
+                }
                 lpOutput += _tcslen(lpOutput) + 1;
-                ConOutChar(_T('\n'));
             }
             FreeEnvironmentStrings(lpEnv);
         }

Reply via email to