1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:37:36 +00:00

Shell: Add a 'kill' builtin that wraps the system's own

Fixes #6578.
This commit is contained in:
Ali Mohammad Pur 2021-04-23 19:09:13 +04:30 committed by Linus Groh
parent 95055d3a38
commit 0d2602c900
3 changed files with 62 additions and 1 deletions

View file

@ -46,7 +46,8 @@
__ENUMERATE_SHELL_BUILTIN(fg) \
__ENUMERATE_SHELL_BUILTIN(bg) \
__ENUMERATE_SHELL_BUILTIN(wait) \
__ENUMERATE_SHELL_BUILTIN(dump)
__ENUMERATE_SHELL_BUILTIN(dump) \
__ENUMERATE_SHELL_BUILTIN(kill)
#define ENUMERATE_SHELL_OPTIONS() \
__ENUMERATE_SHELL_OPTION(inline_exec_keep_empty_segments, false, "Keep empty segments in inline execute $(...)") \
@ -103,6 +104,8 @@ public:
String resolve_path(String) const;
String resolve_alias(const String&) const;
static String find_in_path(const StringView& program_name);
static bool has_history_event(StringView);
RefPtr<AST::Value> get_argument(size_t);