mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-05-08 22:41:03 +00:00
0
How Commands Are Interpreted (Part Two)
ksherlock edited this page 2016-07-29 08:52:53 -04: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)