From 6e506eaea90a21f41de7fd82a320e1c9ef7c7ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Fri, 9 Sep 2011 21:54:41 +0200 Subject: [PATCH] cmd: GOTO is a no-op and doesn't output anything in interactive mode. --- programs/cmd/builtins.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 7122301b0f2..dcbc73e552d 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -1377,14 +1377,15 @@ void WCMD_goto (CMD_LIST **cmdList) { /* Do not process any more parts of a processed multipart or multilines command */ if (cmdList) *cmdList = NULL; - if (param1[0] == 0x00) { - WCMD_output (WCMD_LoadMessage(WCMD_NOARG)); - return; - } if (context != NULL) { WCHAR *paramStart = param1, *str; static const WCHAR eofW[] = {':','e','o','f','\0'}; + if (param1[0] == 0x00) { + WCMD_output (WCMD_LoadMessage(WCMD_NOARG)); + return; + } + /* Handle special :EOF label */ if (lstrcmpiW (eofW, param1) == 0) { context -> skip_rest = TRUE;