mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2025-01-01 04:29:19 +00:00
56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
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
|
|
* Loop ... End
|
|
* For name In [word...] ... End
|
|
* Break [If], Continue [If]
|
|
* ( ... )
|
|
* ||
|
|
* &&
|
|
* redirection
|
|
* | "pipes" (via a temporary file. Presumably, that's what MPW did as well.)
|
|
|
|
Not (yet) supported
|
|
-------------
|
|
* subshells (`...`, ``...``)
|
|
* aliases
|
|
* regular expressions
|
|
* text-editing commands (search forward/backward, et cetera)
|
|
|
|
Builtin Commands
|
|
----------------
|
|
* AboutBox
|
|
* Alias
|
|
* Catenate
|
|
* Directory
|
|
* Echo
|
|
* Evaluate
|
|
* Exists
|
|
* Export
|
|
* Parameters
|
|
* Quote
|
|
* Set
|
|
* Shift
|
|
* Unalias
|
|
* Unexport
|
|
* Unset
|
|
* Version
|
|
* 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.
|