update readme.

This commit is contained in:
Kelvin Sherlock 2016-08-30 20:56:54 -04:00
parent f125b533f7
commit 32c72cb89a
1 changed files with 19 additions and 5 deletions

View File

@ -11,16 +11,17 @@ Supported features
* Begin ... End * Begin ... End
* Loop ... End * Loop ... End
* For name In [word...] ... End * For name In [word...] ... End
* Break [If], Continue [If] * Break [If], Continue [If], Exit [If]
* ( ... ) * ( ... )
* || * ||
* && * &&
* redirection * Redirection
* | "pipes" (via a temporary file. Presumably, that's what MPW did as well.) * | "pipes" (via a temporary file. Presumably, that's what MPW did as well.)
* Subshells (`...`, ``...``)
Not (yet) supported Not (yet) supported
------------- -------------
* subshells (`...`, ``...``)
* aliases * aliases
* regular expressions * regular expressions
* text-editing commands (search forward/backward, et cetera) * text-editing commands (search forward/backward, et cetera)
@ -33,9 +34,11 @@ Builtin Commands
* Directory * Directory
* Echo * Echo
* Evaluate * Evaluate
* Execute
* Exists * Exists
* Export * Export
* Parameters * Parameters
* Quit
* Quote * Quote
* Set * Set
* Shift * Shift
@ -49,7 +52,18 @@ Builtin Commands
Setup Setup
----- -----
1. Install MPW. The mpw binary should be somewhere in your `$PATH`. 1. Install MPW. The mpw binary should be somewhere in your `$PATH`.
It also checks `/usr/local/bin/mpw` and `$HOME/mpw/bin/mpw` It also checks `/usr/local/bin/mpw` and `$HOME/mpw/bin/mpw`. You can
use mpw-shell without it but only with builtin commands.
2. Copy the `Startup` script to `$HOME/mpw/`. This script is executed 2. Copy the `Startup` script to `$HOME/mpw/`. This script is executed
when mpw-shell (or mpw-make) starts up (imagine that) and should when mpw-shell (or mpw-make) starts up (imagine that) and should
be used to set environment variables. be used to set environment variables.
Command Line Flags
------------------
-D name=value Define environment variable
-v Be verbose (equivalent to -Decho=1)
-f Ignore the Startup script
-c string Execute string
-h Display help