summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorSean Kurtz <seankurtz75@gmail.com>2026-11-24 11:52:12 -0600
committerSean Kurtz <seankurtz75@gmail.com>2026-11-24 11:52:12 -0600
commit2b257338481007b88331ae445b26ff99bdbf8977 (patch)
treed5878c980bbeeffd02f17faf556854e599bd4251 /README.md
parentd60ce596e6f4ecd62ada6be0916caea22c75e0a8 (diff)
downloadzash-docs/startup-probe.tar.gz
docs: humanize the markdown docsdocs/startup-probe
Plain sentences where the prose had decorative bold lead-ins, em dashes and one-line closers. Claims, numbers and commands are unchanged, except two corrections that the startup probe settled: README said the remaining z/OS gap was the price of the address mode, and DESIGN's open question on `a | b &` said the gain depended on the address mode. Both are the 64-bit C run-time, not the address mode.
Diffstat (limited to 'README.md')
-rw-r--r--README.md50
1 files changed, 25 insertions, 25 deletions
diff --git a/README.md b/README.md
index aa678bd..b9c20f8 100644
--- a/README.md
+++ b/README.md
@@ -34,40 +34,40 @@ CPU time is billed, and every `fork()` copies an address space.
zash is for shops that care about that:
-- **Low-MSU shops and anyone watching script CPU time.** The shell does its
+- Low-MSU shops and anyone watching script CPU time. The shell does its
work in-process wherever the language allows. When a process is needed it
uses `spawn()`, so `_BPX_SHAREAS` can keep the child in the same address
space.
-- **Shops that want a modern `/bin/sh`, not a different language.** Scripts
+- Shops that want a modern `/bin/sh`, not a different language. Scripts
written for zash are POSIX `sh` scripts. They run under the existing
`/bin/sh`, dash, FreeBSD sh and bash.
-- **People who type at it.** File and command completion, history and line
+- People who type at it. File and command completion, history and line
editing are in scope, provided they cost a script nothing.
-Think "the dash of z/OS", but more usable interactively than dash.
+It aims to be the dash of z/OS, but more usable interactively.
## Goals
-1. **A drop-in replacement for the z/OS `/bin/sh`** for POSIX scripts,
+1. A drop-in replacement for the z/OS `/bin/sh` for POSIX scripts,
including the z/OS behaviours scripts rely on (`_BPX_SHAREAS`,
`_BPX_SPAWN_SCRIPT`, `STEPLIB`, file tagging).
-2. **Script performance at least equal to `/bin/sh`**, measured on z/OS,
+2. Script performance at least equal to `/bin/sh`, measured on z/OS,
by using `spawn()` instead of `fork()` and by not creating a process at
all for builtins, even in pipelines and command substitutions.
-3. **Interactive comfort that is free for scripts**: job control, tab
+3. Interactive comfort that is free for scripts: job control, tab
completion for files and commands, history, emacs- and vi-style
editing. The keys are bash's, and `bind '^[[H'=beginning-of-line`
moves one in the BSD shells' notation. A built-in editor is the
default and libedit is a compile-time alternative. Neither is
initialised by a non-interactive shell.
-4. **The Korn shell features z/OS scripts actually use**: `print`,
+4. The Korn shell features z/OS scripts actually use: `print`,
`whence`, `typeset`, `function name { }`, `(( ))`, `let`, aliases.
They are accepted only where they cost other scripts nothing.
-5. **ASCII or EBCDIC, chosen at compile time.** The source makes no
+5. ASCII or EBCDIC, chosen at compile time. The source makes no
assumption about the character set.
-6. **Small and readable.** One directory, a plain POSIX Makefile, every
+6. Small and readable. One directory, a plain POSIX Makefile, every
function documented.
-7. **Heavily tested.** See [Testing](#testing).
+7. Heavily tested. See [Testing](#testing).
## Non-goals
@@ -147,23 +147,23 @@ Chrome/Chromium to turn the two Markdown documents into HTML and PDF, and
The project is tested at several levels:
-- **Behavioural tests** for every feature, as shell scripts with expected
+- Behavioural tests for every feature, as shell scripts with expected
output. Portable tests are also run under dash and the results compared,
so a disagreement with an existing ash-family shell is always visible.
-- **AddressSanitizer and UndefinedBehaviorSanitizer** builds run the whole
+- AddressSanitizer and UndefinedBehaviorSanitizer builds run the whole
suite on Linux.
-- **Valgrind** runs the whole suite on Linux, including leak checking.
-- **Process accounting tests** assert the exact process count of a
+- Valgrind runs the whole suite on Linux, including leak checking.
+- Process accounting tests assert the exact process count of a
construct (for example, `$(echo x)` creates none), so a performance
regression fails the suite.
-- **Security tests** (`tests/zos/security.sh`) check what the shell must
+- Security tests (`tests/zos/security.sh`) check what the shell must
never do: create a file more permissive than the umask allows, look for
a command in the current directory, or run what an expansion or a file
name produced.
-- **Interactive tests** drive the shell through a pseudo-terminal: editor
+- Interactive tests drive the shell through a pseudo-terminal: editor
keys in both modes, completion, history, prompts and job control. They
need python3 and are skipped without it.
-- **On z/OS** `make zos-check` runs the same behavioural and
+- On z/OS `make zos-check` runs the same behavioural and
process-accounting tests, plus a z/OS-only group (`tests/zos/`), in
either character mode. There is no ASan, UBSan or Valgrind there, but
Language Environment can put a check zone after every heap element and
@@ -175,7 +175,7 @@ The project is tested at several levels:
character modes pass `zos-check`; under the heap checker two signal
tests fail, as they do not in `zos-check` (see
[DESIGN.md](DESIGN.md#testing)).
-- **A debugger** is `lldb` on Linux (`make debug`, `make attach`) and
+- A debugger is `lldb` on Linux (`make debug`, `make attach`) and
`dbx` on z/OS (`make zos-debug`, `make zos-dbx`). `make zos-amblist`
maps the CSECTs of the program object when a module-level question
comes up. Break by function (`st in main`) or by address. On a build
@@ -300,7 +300,7 @@ like a pipeline stage already did, so the same 3000 cost 0.00 s here
against the 0.79 of `sh`.
What is left of the gap in the `background jobs` row above is the price
-of the address mode, not of the design: measured on this machine a
+of the 64-bit C run-time, not of the design: measured on this machine a
64-bit `fork()` costs 4.2 ms and a 31-bit one 0.10 ms, and the same
program starts in 29.5 ms at 64-bit against 1.1 ms at 31-bit. The z/OS
make targets therefore build `-m32`, and the table above is the last
@@ -321,16 +321,16 @@ word instead of eight.
Linux is feature-complete for the first release (see [Status](#status)).
On z/OS, in order:
-1. **Manual pages**: `zash(1)` and a page per builtin group, installed by
+1. Manual pages: `zash(1)` and a page per builtin group, installed by
`make install`, kept beside the code they document.
-2. **The editor on a real terminal**: interactive tests on a 3270-style
+2. The editor on a real terminal: interactive tests on a 3270-style
terminal, in both character modes.
-3. **`_BPX_SHAREAS`**: the benchmark rows above re-run under
+3. `_BPX_SHAREAS`: the benchmark rows above re-run under
`_BPX_SHAREAS=YES`, `NO` and `REUSE`.
-4. **The remaining `VERIFY` notes**: `sys_zos.c`, `charset.h`, the EBCDIC
+4. The remaining `VERIFY` notes: `sys_zos.c`, `charset.h`, the EBCDIC
`$'\cX'` codes and the data set paths, each checked on hardware and
the note removed.
-5. **z/OS conveniences**: `tag`, `alloc`/`free` and `tso` builtins, MVS
+5. z/OS conveniences: `tag`, `alloc`/`free` and `tso` builtins, MVS
data set redirection, job names, message IDs.
[DESIGN.md](DESIGN.md#roadmap) has the longer version, including why each