1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:37:45 +00:00

Shell: Add the 'join' and 'filter_glob' immediate functions

'split' was missing its other half, and to avoid globbing the
filesystem, let's keep the globbing to shell-internal state.
This commit is contained in:
Ali Mohammad Pur 2022-02-23 09:16:31 +03:30 committed by Ali Mohammad Pur
parent 4a331c73f8
commit e6bd1f8807
2 changed files with 73 additions and 1 deletions

View file

@ -64,7 +64,9 @@
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(remove_suffix) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(remove_prefix) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(regex_replace) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(split)
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(filter_glob) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(split) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(join)
namespace Shell {