Shell: Add the POSIX-only 'eval' builtin

This just concatenates its arguments together, and executes it as a
command.
This commit is contained in:
Ali Mohammad Pur 2023-09-21 02:31:23 +03:30 committed by Jelle Raaijmakers
commit 21ea9cedff
Notes: sideshowbarker 2024-07-17 02:55:44 +09:00
2 changed files with 26 additions and 0 deletions

View file

@ -32,6 +32,7 @@
__ENUMERATE_SHELL_BUILTIN(pwd, InAllModes) \
__ENUMERATE_SHELL_BUILTIN(type, InAllModes) \
__ENUMERATE_SHELL_BUILTIN(exec, InAllModes) \
__ENUMERATE_SHELL_BUILTIN(eval, OnlyInPOSIXMode) \
__ENUMERATE_SHELL_BUILTIN(exit, InAllModes) \
__ENUMERATE_SHELL_BUILTIN(export, InAllModes) \
__ENUMERATE_SHELL_BUILTIN(glob, InAllModes) \