From 1a47ca550de59e3dcdfe3c6d2c5c05e272b54457 Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Sat, 10 Jul 2021 01:20:34 -0400 Subject: [PATCH] add braces around else portion so can clearly see CMDLINE is cleared always --- shell/command.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/command.c b/shell/command.c index 6e06afec..90c7f8d2 100644 --- a/shell/command.c +++ b/shell/command.c @@ -273,8 +273,11 @@ void execute(char *first, char *rest, int lh_lf) env_nullStrings(0); setErrorLevel(result); - } else + } else { /* not bat, exe, or com file */ error_bad_command(first); + } + + /* clear CMDLINE once return from program execution so not still in environment */ chgEnv( "CMDLINE", NULL ); }