Module: wine Branch: master Commit: 6e506eaea90a21f41de7fd82a320e1c9ef7c7ff2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6e506eaea90a21f41de7fd82a3... Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Fri Sep 9 21:54:41 2011 +0200 cmd: GOTO is a no-op and doesn't output anything in interactive mode. --- programs/cmd/builtins.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 7122301..dcbc73e 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;