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:
parent
d0112d76e9
commit
7c312980b0
4 changed files with 816 additions and 11 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue