From f43297f989625496aef799256207650eb657134f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Thu, 14 Jul 2011 14:08:09 +0200 Subject: [PATCH] cmd: Do not show prompt when echo mode is off. --- programs/cmd/wcmdmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index 28394c182c6..bd572d29441 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -2555,7 +2555,7 @@ int wmain (int argc, WCHAR *argvW[]) /* Read until EOF (which for std input is never, but if redirect in place, may occur */ - WCMD_show_prompt (); + if (echo_mode) WCMD_show_prompt(); if (WCMD_ReadAndParseLine(NULL, &toExecute, GetStdHandle(STD_INPUT_HANDLE)) == NULL) break;