From e2af20a69bab4ed956636bbf6fa816bf8bf50b2c Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Thu, 21 Sep 2023 02:29:53 +0330 Subject: [PATCH] Shell: Correct the continue builtin's count guard This builtin only supports count = 1 (as the error message says), but we were looking for count = 0. --- Userland/Shell/Builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index 9e60e0d5aa7..0e7703dca97 100644 --- a/Userland/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp @@ -258,7 +258,7 @@ ErrorOr Shell::builtin_continue(Main::Arguments arguments) if (!parser.parse(arguments, Core::ArgsParser::FailureBehavior::PrintUsage)) return 1; - if (count != 0) { + if (count != 1) { raise_error(ShellError::EvaluatedSyntaxError, "continue: count must be equal to 1 (NYI)"); return 1; }