| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Two behaviours the review-2026-11-28 fixes settled and the specification
did not state:
- R-ARI-8: `base#number`, 2 to 64, digits 0-9 a-z A-Z @ _, errors on a
base out of range, no digits, a digit not in the base and overflow.
It is an extension, as in bash and ksh93, and the arith-base tests now
cover it.
- R-EXP-9: `${@#p}` and friends trim each positional parameter before the
results are joined by the `$@`/`$*` rule, which is what trim-all tests.
Regenerated from formal/zash-spec.typ with typst 0.15.1: the PDF, the HTML
export and (pandoc, plain) zash-spec.txt. The Lean model is untouched.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The working tree the 2026-11-28 review was written against, committed
unchanged so the review fixes can sit on top of it.
- vi mode: `v` edits the line in $VISUAL, else $EDITOR (edit_external),
and `.` repeats the last change, count and all.
- `( cd dir )` runs in-process with the directory saved and restored,
instead of forking, and its invalidation of the cached logical cwd.
- tests/perf: a start-up cost guard; tests/run.sh runs that directory.
- README: set +o pipetag for ASCII builds.
- formal/zash-spec.txt regenerated as text.
- .clang-tidy: two checks re-enabled (no findings after the change).
- tests/scripts/webdocs: a `#` inside a fenced block is not a title.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
IBM's /bin/sh is of the KornShell line and `select` is part of what its
scripts use, so the shell that replaces it has to have it. The menu goes
to stderr as "number TAB word", then PS3 (default "#? "); the answer is
read with the rules of `read REPLY`; a number in range picks that word,
anything else leaves the variable empty and the body still runs, a blank
line only prompts again, and end of input ends the loop.
The node is the `for` node with a `menu` flag, since the two differ only
in what the body sees. tests/zash/select.sh prints the same bytes under
zash and under the CBT /bin/sh; the specification has the rule.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
DESIGN.md's "File tags" table said an ASCII build defers the tag on a `>`
target and takes the first writer's CCSID; sys_zos.c tags a file the shell
creates as IBM-1047 text and converts its own writes, and the paragraph "the
tag follows the writer" now says that deferred tags are the _TAG_REDIR_*
cases only. The shell's own stdout and stderr are in the table now, and the
reason the inherited conversion is harmless to a binary writer (gzip turns it
off, and tests/zos/tagging.sh checks the archive) is written down.
The specification records what a script reviewer needs: R-LEX-17 no longer
just ends the body at end of input, it says zash does not warn where bash
does, and the new zash-only error rule gives 127/126 for a script that cannot
be opened and 2 for a read error while input is being read. The PDF is
regenerated.
|
| | |
|
| | |
|
| |\
| |
| |
| |
| |
| |
| | |
Resolutions: README.md and DESIGN.md keep the new colour logo
(packaging/zash-logo.svg) at width 220; the Makefile keeps main's newer
shellcheck header, lists `make docs` in the usage block, and `clean`
removes docs, cov and $(ZTOOLS) along with the branch's new tools.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
zash was AMODE 64, so calling the AMODE 31 IGGCSI00 needed assembler
glue (zos_csi.s) that switched addressing mode around the branch. Built
with -m32 the program is 31-bit itself: the call goes through a plain
function pointer, the work area and the saved registers live in one
31-bit block in C, and the glue is gone.
The rest of the tree follows the change: the build, the off-z/OS lint
shim, DESIGN.md and README.md, the benches, the Lean spec of the
pattern matcher, and the tests that recorded what the extra address bits
had changed.
|
| |/
|
|
|
|
|
|
|
|
| |
formal/zash-spec.pdf could not be rebuilt from anything in the tree.
scripts/spec-pdf.sh does it: the typst CLI when present, the Python
package otherwise, with the repository root as typst's root so the cover
can reach ../packaging/zash-logo.svg. `make spec` runs it.
The PDF is rebuilt from the same source, so the cover carries the new
logo; the page count is unchanged at 27.
|
| | |
|
|
|
verification.
|