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

Shell: Implement arithmetic expansions for POSIX mode

This also adds a 'math' immediate function that can be used in Shell
proper to do arithmetic stuff.
This commit is contained in:
Ali Mohammad Pur 2023-03-21 03:53:24 +03:30 committed by Andreas Kling
parent d0112d76e9
commit 7c312980b0
4 changed files with 816 additions and 11 deletions

View file

@ -80,7 +80,8 @@
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(error_if_unset) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(null_if_unset_or_alternative) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(length_of_variable) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(reexpand)
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(reexpand) \
__ENUMERATE_SHELL_IMMEDIATE_FUNCTION(math)
namespace Shell {