From 5c0c1261228b7e9cdb58a4ba615aa9bcde9b6bee Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Sun, 9 Jan 2022 11:41:53 +0330 Subject: [PATCH] Shell: Add a "noop" builtin aliased to ":" POSIX comes up with such silly names sometimes... This builtin does nothing. at all. --- Userland/Shell/Builtin.cpp | 11 +++++++++++ Userland/Shell/Shell.h | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp index ea5b04cf80..baf863c88f 100644 --- a/Userland/Shell/Builtin.cpp +++ b/Userland/Shell/Builtin.cpp @@ -25,6 +25,11 @@ extern char** environ; namespace Shell { +int Shell::builtin_noop(int, const char**) +{ + return 0; +} + int Shell::builtin_dump(int argc, const char** argv) { if (argc != 2) @@ -1142,6 +1147,9 @@ bool Shell::run_builtin(const AST::Command& command, const NonnullRefPtrVector