2020-12-01 23:08:34 -05:00
2020-12-01 23:08:34 -05:00
2016-08-09 14:47:11 -04:00
2016-08-17 13:14:16 -04:00
2016-01-27 10:43:34 -05:00
2017-11-26 14:40:30 -05:00
2016-10-08 09:54:06 -04:00
2016-10-08 09:54:06 -04:00
2016-10-08 09:54:06 -04:00
2016-08-30 12:25:43 -04:00
2016-08-09 15:29:10 -04:00
2017-05-01 15:44:42 -06:00
2016-08-05 22:00:48 -04:00
2016-08-30 12:25:43 -04:00
2016-07-26 16:07:44 -04:00
2016-08-09 14:40:00 -04:00
2016-07-23 15:21:13 -04:00
2016-07-23 15:21:13 -04:00
2016-09-24 12:49:10 -04:00
2016-08-17 13:14:38 -04:00
2016-08-11 16:09:39 -04:00
2016-01-27 10:43:34 -05:00
2020-12-01 23:01:00 -05:00
2016-02-10 23:53:41 -05:00
2016-08-30 12:25:43 -04:00
2016-08-30 12:25:43 -04:00
2016-08-30 20:56:54 -04:00
2016-01-27 10:43:34 -05:00
2016-01-27 10:43:34 -05:00
2016-09-24 12:51:24 -04: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
  • Loop ... End
  • For name In [word...] ... End
  • Break [If], Continue [If], Exit [If]
  • ( ... )
  • ||
  • &&
  • Redirection
  • | "pipes" (via a temporary file. Presumably, that's what MPW did as well.)
  • Subshells (..., ...)

Not (yet) supported

  • aliases
  • regular expressions
  • text-editing commands (search forward/backward, et cetera)

Builtin Commands

  • AboutBox
  • Alias
  • Catenate
  • Directory
  • Echo
  • Evaluate
  • Execute
  • Exists
  • Export
  • Parameters
  • Quit
  • 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. You can use mpw-shell without it but only with builtin commands.
  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.

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
Description
A shell for those that prefer Macintosh Programmer's Workshop.
mpw
Readme 351 KiB
Languages
C++ 87.6%
Ragel 10.1%
CMake 1.7%
C 0.4%
Ruby 0.2%