[CMD] Fix the output of the SET command.

This commit is contained in:
Hermès Bélusca-Maïto 2020-06-09 00:35:18 +02:00
parent ca4523658c
commit e3ed502bb6
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -92,10 +92,13 @@ INT cmd_set(LPTSTR param)
lpOutput = lpEnv; lpOutput = lpEnv;
while (*lpOutput) while (*lpOutput)
{ {
/* Do not display the special '=X:' environment variables */
if (*lpOutput != _T('=')) if (*lpOutput != _T('='))
{
ConOutPuts(lpOutput); ConOutPuts(lpOutput);
ConOutChar(_T('\n'));
}
lpOutput += _tcslen(lpOutput) + 1; lpOutput += _tcslen(lpOutput) + 1;
ConOutChar(_T('\n'));
} }
FreeEnvironmentStrings(lpEnv); FreeEnvironmentStrings(lpEnv);
} }