mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:37:45 +00:00
Shell: Add a "noop" builtin aliased to ":"
POSIX comes up with such silly names sometimes... This builtin does nothing. at all.
This commit is contained in:
parent
6a245de911
commit
5c0c126122
2 changed files with 15 additions and 1 deletions
|
@ -48,7 +48,8 @@
|
|||
__ENUMERATE_SHELL_BUILTIN(bg) \
|
||||
__ENUMERATE_SHELL_BUILTIN(wait) \
|
||||
__ENUMERATE_SHELL_BUILTIN(dump) \
|
||||
__ENUMERATE_SHELL_BUILTIN(kill)
|
||||
__ENUMERATE_SHELL_BUILTIN(kill) \
|
||||
__ENUMERATE_SHELL_BUILTIN(noop)
|
||||
|
||||
#define ENUMERATE_SHELL_OPTIONS() \
|
||||
__ENUMERATE_SHELL_OPTION(inline_exec_keep_empty_segments, false, "Keep empty segments in inline execute $(...)") \
|
||||
|
@ -333,6 +334,8 @@ private:
|
|||
ENUMERATE_SHELL_BUILTINS()
|
||||
|
||||
#undef __ENUMERATE_SHELL_BUILTIN
|
||||
|
||||
":", // POSIX-y name for "noop".
|
||||
};
|
||||
|
||||
bool m_should_ignore_jobs_on_next_exit { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue