summaryrefslogtreecommitdiffhomepage
path: root/formal
Commit message (Collapse)AuthorAgeFilesLines
* docs(spec): write down base#number and trimming of each positionalSean Kurtz47 hours4-4789/+4979
| | | | | | | | | | | | | | | 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.
* wip: vi external edit and dot-repeat, in-process cd subshell, perf testSean Kurtz2 days2-6/+1094
| | | | | | | | | | | | | | | 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.
* feat: select, the ksh88 menu loopSean Kurtz2 days2-4879/+5106
| | | | | | | | | | | | | 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.
* docs: the tagging rule as the code does it, and input errors in the specfix/zos-tagging-and-csiSean Kurtz2 days2-4939/+4990
| | | | | | | | | | | | | | | | 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.
* chore: clangd sysroot note, shellcheck header, typst formattingchore/editor-and-lint-hintsSean Kurtz6 days1-40/+169
|
* license: MIT OR Apache-2.0 OR BSD-2-Clauselicense/triple-licenseSean Kurtz6 days1-1/+1
|
* Merge origin/main into docs/logo-and-cleandocs/logo-and-cleanSean Kurtz7 days8-0/+592
|\ | | | | | | | | | | | | 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.
| * z/OS: run 31-bit and load IGGCSI00 through the C librarySean Kurtz7 days8-0/+592
| | | | | | | | | | | | | | | | | | | | | | | | | | 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: typeset the spec from a script, and with the new coverSean Kurtz7 days1-2576/+2704
|/ | | | | | | | | | 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.
* typst: fix some issues with formatting around code blocks.Sean Kurtz9 days4-7260/+5059
|
* formal: moved all spec docs inside new formal directory for working on ↵Sean Kurtz9 days4-0/+13616
verification.