From e3ed502bb67fd6ead237a2e65849d0f6d7b9e29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Tue, 9 Jun 2020 00:35:18 +0200 Subject: [PATCH] [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); }