From e0327399bd0705f2cd6c9699414e186507bf50e2 Mon Sep 17 00:00:00 2001 From: Mikhail Bystryantsev Date: Sat, 24 Jan 2015 17:38:35 +0300 Subject: cmd: fixed wrong else statement processing --- programs/cmd/builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 992ca5c..d4cb7ce 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -1561,7 +1561,7 @@ static void WCMD_part_execute(CMD_LIST **cmdList, const WCHAR *firstcmd, (*cmdList)->command)) { /* Swap between if and else processing */ - processThese = !processThese; + processThese = !executecmds; /* Process the ELSE part */ if (processThese) { -- 1.8.5.2.msysgit.0