mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-05-12 19:05:20 +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)