Commit Graph

9 Commits

Author SHA1 Message Date
Kelvin Sherlock 91590e92aa add missing (mostly macroman) operators 2022-11-25 16:02:27 -05:00
Kelvin Sherlock ce1a36eba5 add regular expression support for evaluate, if, etc.
eg:

evaluate abc =~ /(abc)®4/ # sets the '@4' environment variable.
evaluate abc !~ /[aA]bc/

MPW regular expressions are converted to c++11 std::regex regular expressions and evaluated.
Sadly, the // regular expression syntax interferes with unix-paths (if the / count is odd).  quoting or ∂-escaping the /s is therefore necessary.

file globbing is not yet implemented.
2022-11-22 17:22:49 -05:00
Kelvin Sherlock ad523f258e clean up errors a little bit. 2016-07-28 13:42:18 -04:00
Kelvin Sherlock 544f3a994c fix << evaluation. 2016-07-27 16:28:48 -04:00
Kelvin Sherlock f97625eba7 fix comment. 2016-07-23 16:04:13 -04:00
Kelvin Sherlock a8920e2f53 pathname conversion -- handle dev:null, dev:stdout, dev:stdin, dev:stderr 2016-02-10 23:51:37 -05:00
Kelvin Sherlock 0c96252d65 more file redirection. 2016-02-03 15:07:15 -05:00
Kelvin Sherlock dc76f5addf linux 2016-01-27 12:35:37 -05:00
Kelvin Sherlock 7034e1193e initial version 2016-01-27 10:43:34 -05:00