diff --git a/Shell/main.cpp b/Shell/main.cpp index 2f562c0a3d..14c06c9187 100644 --- a/Shell/main.cpp +++ b/Shell/main.cpp @@ -857,6 +857,9 @@ static ExitCodeOrContinuationRequest run_command(const StringView& cmd) auto commands = Parser(cmd).parse(); + if (!commands.size()) + return 1; + auto needs_more = is_complete(commands); if (needs_more != ExitCodeOrContinuationRequest::Nothing) return needs_more;