mpw-shell/README.md

49 lines
1.1 KiB
Markdown
Raw Normal View History

2016-02-22 14:59:50 +00:00
MPW Shell
---------
MPW Shell is a re-implementation of the Macintosh Programmer's Workshop shell.
The primary reason is to support MPW Make (which generated shell script). It
may also be useful for other things.
Supported features
------------------
* If ... [Else If] ... [Else] ... End
* Begin ... End
2016-06-16 03:04:14 +00:00
* Loop ... End
2016-06-16 13:39:43 +00:00
* For name In [word...] ... End
2016-06-16 03:04:14 +00:00
* Break [If], Continue [If]
2016-02-22 14:59:50 +00:00
* ( ... )
* ||
* &&
* redirection
2016-07-26 23:50:04 +00:00
* | "pipes" (via a temporary file. Presumably, that's what MPW did as well.)
2016-02-22 14:59:50 +00:00
Not supported
-------------
* subshells (`...`, ``...``)
* text-editing commands (search forward/backward, regular expressions, et cetera)
Builtin Commands
----------------
2016-06-16 03:04:14 +00:00
* AboutBox
2016-02-22 14:59:50 +00:00
* Directory
* Echo
2016-06-16 03:04:14 +00:00
* Exists
2016-02-22 14:59:50 +00:00
* Export
* Parameters
* Quote
* Set
* Unexport
* Unset
2016-06-16 03:04:14 +00:00
* Version
2016-02-22 14:59:50 +00:00
* Which
Setup
-----
1. Install MPW. The mpw binary should be somewhere in your `$PATH`.
It also checks `/usr/local/bin/mpw` and `$HOME/mpw/bin/mpw`
2. Copy the `Startup` script to `$HOME/mpw/`. This script is executed
when mpw-shell (or mpw-make) starts up (imagine that) and should
be used to set environment variables.