Conformance
A Unix tool is only useful if it does what you expect. When you type
sort -n or sed s/a/b/, you want the answer you would get on any
other Unix. So the tools in maux are tested against real ones.
At a glance
| Commands on the disk | 91 |
|---|---|
| Standard utilities compared with a real Unix, command by command | 62 |
| Tests run on them | 837 |
| Same answer | 823 |
| Known differences, each named below | 14 |
The shell, sed, vi, ex and the regular-expression engine have references of their own and are counted separately in the table further down.
How closely
The headline: most of the command set follows POSIX, and is tested that way. Some of it
is older on purpose. The shell is the Version 7 Bourne shell with the POSIX parts that
fit. ed is a small version of the original editor. vi and ex come from
Berkeley, and have been brought up to the POSIX text. The table says which is which.
How it is checked: most tests run a command on maux and run the same command on a Mac,
then compare the output and the exit status byte for byte. Where the Mac’s tool
and the POSIX text disagree, the POSIX text wins. The Mac’s own tools are BSD tools,
and its vi and ex are Vim. The counts below come from test runs
on 2026-10-24. maux runs on an emulated enhanced IIe for those runs, not on a
real machine: they establish what the software does, not how the original hardware
behaves.
How to read the counts
A test is one command, run on maux and run again on the reference. It counts
only if maux gave the same answer, byte for byte, including the exit status.
Something maux does not do, such as grep -E, is a difference, not a match, and
is listed by name under “Where it differs”. 823 of the
837 tests on the standard utilities gave the same answer, and
14 are known differences. (The test run itself prints
837 of 837, because it also counts a known
difference as a pass for as long as it stays different. That is a check on the list of
differences, not a match.)
Not every test has a running reference to compare with. Of the
823 that agreed, 522 compare maux with the
Mac’s own tool. The other 301 check maux against an expected answer
written by hand, where the Mac has no tool to compare with (cal, for one) or
its tool disagrees with the POSIX text. Those are assertions, not comparisons. The
shell, sed, vi, ex and regular-expression counts
are separate runs against their own references, named in the table.
Tool by tool
“Where it comes from” is the design maux follows. “Same answer” counts the tests whose output and exit status matched the reference exactly; a known difference is not counted as agreeing.
| Tool | Where it comes from | Checked against | Same answer | Notable differences |
|---|---|---|---|---|
vi | Second Berkeley Software Distribution (2BSD). Bill Joy's visual mode for ex, first installed under the name vi. | macOS vi (Vim in vi mode) | 72 of 72 | Brought up to the POSIX vi text. No normal-mode filter command (use :%!cmd), no R replace mode, no crash recovery; a file holds a limited number of lines. |
ex | First Berkeley Software Distribution (1BSD), where it shipped as ex. Bill Joy's extended ed; its second version came with 2BSD. | macOS ex (Vim in ex mode) | 92 of 92 | Brought up to the POSIX ex text. No tags, no multi-file next list, no crash recovery. |
sed | Version 7 Unix. | macOS sed (BSD sed); only constructs BSD and GNU sed agree on | 137 of 137 | Rewritten to the POSIX sed text. Very long input lines are cut short. |
| Regular expressions | POSIX basic regular expressions, as in ed and grep. One engine serves grep, sed, ed, ex and vi. | the AT&T (Fowler) and Spencer regular-expression test files | 109 of 109 | Extended regular expressions are not provided. A malformed pattern quietly matches nothing instead of being reported as an error (28 test rows expect an error and are not counted). |
sh | Version 7 Bourne shell, by design. eval, set -e and prefix assignments are Version 7 already. The POSIX additions that fit: getopts, $( ), ${V%pat}, command. | macOS /bin/sh (bash in POSIX mode), construct by construct | 54 of 56 | Not a full POSIX shell. No functions (they came after Version 7), no backquotes, no $(( )) arithmetic (use expr). What differs is listed below. |
grep | Version 4 Unix, written by Ken Thompson so a colleague could analyse the Federalist Papers. The manual page maux follows is the Version 6 one. | macOS grep | 15 of 16 | Basic regular expressions only: grep -E is not provided, and that counts as a difference, not a match. |
make | Version 7 make, plus the POSIX inference rules and macros. | macOS make (comparing what each would run), and the POSIX text | 40 of 40 | No shell between make and the command, so no pipes, redirection or globbing in a recipe. No include, no parallel jobs. |
ed | The original Unix line editor (Version 1), as a small subset. | not scored against a reference | — | Smaller than the original ed on purpose. No undo, marks, backward search or shell escape. Version 1 already had backward search and the shell escape; ex has them all. |
| The other standard utilities | Mostly Research Unix: cat, ls, cp, mv, rm, wc, od, sort, find, tr, uniq, tail and more. csplit is from PWB/UNIX. Newer ones (cut, paste, printf, nl, timeout) were written from the POSIX text. | the host’s own utilities (macOS BSD tools); the POSIX text where those disagree | 823 of 837, across 62 utilities | 14 known differences are counted as differences, and listed below. Some can never close because ProDOS has no owners, groups or modes. |
| man, more | man dates from the Second Edition. more is BSD; Version 7 had no pager. | man: the POSIX text. more: not scored | 6 of 6 (man) | Manual pages are plain text, paged through more. |
| bye, mount, umount, chvt, vidmode, nulib2, tip | maux and Apple II specific. (tip is a BSD tool, adapted to the serial card.) | nothing: no other Unix has these | — | They exist because of the machine: running a ProDOS program, mounting disk images, switching consoles, ShrinkIt archives. |
Where it differs
The known differences from the reference, as the test runs reported them: the 14 utility differences counted above, then the shell. Each is something a script might trip over. Some are choices (no extended regular expressions), some are the machine (no floating point, no file owners), and some are work not done yet.
Utilities
expr ':'a malformed regular expression is an error on other systems; here it quietly matches nothinggrep -Eextended regular expressions are not supportedmkdir -mmode is not supportedsort -k2,2ddictionary order is not supportedsort -k2,2iignore-nonprinting is not supportedsort -k1.2character offsets are not supportedfind -permhas no ProDOS meaning (permanent)find -userhas no ProDOS meaning (permanent)find -grouphas no ProDOS meaning (permanent)printf %eis not supported (no floating point)printf %fis not supported (no floating point)printf %gis not supported (no floating point)printf %ais not supported (no floating point)strings -nover 255 is not supported (the run buffer is one page)
The shell
sha ( ) group cannot be a pipeline stageshnested $( ) is refused
Every utility
The same answers, utility by utility, in the run above. A utility with a known difference shows less than its full count.
Show all 62 utilities
basename6 of 6cal6 of 6cat7 of 7cksum4 of 4cmp7 of 7comm7 of 7cp4 of 4csplit9 of 9cut12 of 12date2 of 2df2 of 2diff49 of 49dirname5 of 5du4 of 4echo3 of 3env8 of 8expand4 of 4expr63 of 64 1 known differencefalse2 of 2find39 of 42 3 known differencesfold4 of 4grep15 of 16 1 known differencehead8 of 8join10 of 10kill5 of 5ls8 of 8make40 of 40man6 of 6mkdir4 of 5 1 known differencemv4 of 4nl23 of 23nohup4 of 4od55 of 55paste6 of 6patch12 of 12pathchk9 of 9pr74 of 74printf14 of 18 4 known differencespwd1 of 1realpath11 of 11rm4 of 4rmdir8 of 8sleep3 of 3sort51 of 54 3 known differencessplit4 of 4strings8 of 9 1 known differencetail15 of 15tee3 of 3test52 of 52timeout11 of 11touch3 of 3tr10 of 10true2 of 2tsort7 of 7tty3 of 3uname9 of 9unexpand6 of 6uniq8 of 8uudecode10 of 10uuencode9 of 9wc9 of 9xargs32 of 32
The test runs are kept in evidence/.