mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2026-04-19 20:16:57 +00:00
This is how commands are interpreted in mpw-shell.
- Join lines and remove
#comments - parse control structures -
begin/end,(...),for/end,loop/end,;,|,||,&&; - replace variables (and someday subshells)
- split into tokens, remove quotes and escape characters
- process i/o redirection
- execute the command (builtin or external)