summaryrefslogtreecommitdiff
path: root/Userland/Shell/Builtin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Shell/Builtin.cpp')
-rw-r--r--Userland/Shell/Builtin.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Userland/Shell/Builtin.cpp b/Userland/Shell/Builtin.cpp
index d3a48b5089..731710af43 100644
--- a/Userland/Shell/Builtin.cpp
+++ b/Userland/Shell/Builtin.cpp
@@ -40,6 +40,15 @@ extern char** environ;
namespace Shell {
+int Shell::builtin_dump(int argc, const char** argv)
+{
+ if (argc != 2)
+ return 1;
+
+ Parser { argv[1] }.parse()->dump(0);
+ return 0;
+}
+
int Shell::builtin_alias(int argc, const char** argv)
{
Vector<const char*> arguments;