mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
Shell: Add a not
builtin
`not` just takes a command, runs it, then negates its exit code (0->1, non-zero->0).
This commit is contained in:
parent
2843526513
commit
50473003be
Notes:
sideshowbarker
2024-07-18 23:03:44 +09:00
Author: https://github.com/alimpfard
Commit: 50473003be
Pull-request: https://github.com/SerenityOS/serenity/pull/4996
2 changed files with 20 additions and 0 deletions
|
@ -52,6 +52,7 @@
|
|||
__ENUMERATE_SHELL_BUILTIN(unset) \
|
||||
__ENUMERATE_SHELL_BUILTIN(history) \
|
||||
__ENUMERATE_SHELL_BUILTIN(umask) \
|
||||
__ENUMERATE_SHELL_BUILTIN(not ) \
|
||||
__ENUMERATE_SHELL_BUILTIN(dirs) \
|
||||
__ENUMERATE_SHELL_BUILTIN(pushd) \
|
||||
__ENUMERATE_SHELL_BUILTIN(popd) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue