mirror of
https://github.com/ksherlock/mpw-shell.git
synced 2024-12-29 15:29:19 +00:00
1.1 KiB
1.1 KiB
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
- Install MPW. The mpw binary should be somewhere in your
$PATH
. It also checks/usr/local/bin/mpw
and$HOME/mpw/bin/mpw
- 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.