mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +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
Notes:
sideshowbarker
2024-07-17 21:20:39 +09:00
Author: https://github.com/alimpfard
Commit: 5c0c126122
Pull-request: https://github.com/SerenityOS/serenity/pull/11634
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