summaryrefslogtreecommitdiffhomepage
path: root/DESIGN.md
Commit message (Collapse)AuthorAgeFilesLines
* DESIGN: record what the z/OS run actually does nowfix/zos-spawn-fdmapSean Kurtz7 days1-5/+6
| | | | | | | The paragraph said two signal tests fail under zos-heapcheck and pass under zos-check. With the fd map fixed, zos-check is green in full, and the heapcheck failure that remains is one intermittent case in scripts/signals, which passes when run on its own.
* z/OS: run 31-bit and load IGGCSI00 through the C librarySean Kurtz7 days1-54/+153
| | | | | | | | | | | | | 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.
* docs: say 31-bit, not below the barSean Kurtz11 days1-19/+39
| | | | | | "Below the bar" means below 16 MB, the 24-bit range. IGGCSI00 needs 31-bit addresses, so the block has to stay below 2 GB -- two very different limits. Corrected where the two had been confused.
* docs: the subshell row, and why a subshell can now skip its processSean Kurtz11 days1-0/+8
|
* docs: say it in short sentencesSean Kurtz12 days1-80/+101
| | | | | | | | | | | | | DESIGN.md, README.md and the Doxygen comments leaned on semicolons to join clauses and on trailing "which" clauses to add afterthoughts. Both read as machine-written prose. Each joined clause is now its own sentence, and the afterthoughts are either part of the sentence or a sentence of their own. Also corrected: README said C11 in two places (the tree builds C17), the completion section still described the pre-HLQ-rule filters and the 64-call resume limit, and the z/OS job-control note still called SPAWN_SETTCPGRP unverified.
* DESIGN: keep the table ASCIISean Kurtz12 days1-1/+1
| | | | | The z/OS working tree is Latin-1, so an em dash there breaks every git checkout on the machine.
* completion: stop guessing the HLQ for a bare //NAMESean Kurtz12 days1-1/+1
| | | | | | | `//NAME` completed against <user>.NAME, which meant assuming a TSO profile. It now offers nothing: only `//'DSN` and `//DD:` complete. The quoted member form keeps working, and the tests drop the relative cases.
* z/OS: give the EBCDIC build its own nameSean Kurtz12 days1-1/+2
| | | | | | | | Both zos-ascii and zos-ebcdic wrote ./zash, so `make zos-ascii` after an EBCDIC build was "up to date" and left the EBCDIC program in place -- which cost a debugging session: the "ASCII" binary on cbt was EBCDIC. ASCII is the build zopen uses and the one the tests run, so it keeps ./zash; EBCDIC is ./zash-ebcdic.
* zos_csi: keep the equates comment short and the file Latin-1Sean Kurtz12 days1-2/+2
| | | | | | HLASM wants every line inside column 71, so a two-line comment overran the continuation column and as reported ASMA144E. DESIGN.md picked up an em dash, which will not convert to the z/OS working-tree encoding either.
* Say the z/OS layer has been built and run thereSean Kurtz12 days1-15/+25
| | | | | | | | The docs and three source headers still claimed the z/OS layer had never been compiled. Both character modes build with ibm-clang, tests/zos/* run it on the machine, LE's heap checker stands in for ASan, and AMBLIST shows the CSI glue inside the program object. What is left is the set of things no test reaches, which the VERIFY notes already name.
* docs: the z/OS benchmarks, measuredSean Kurtz12 days1-4/+6
| | | | | | | | | | README carried "nothing has been compiled or run on z/OS yet", which stopped being true several commits ago, and promised z/OS numbers for the process-creation rows. Both tables are now measured: Linux against dash, bash, ksh and oksh, and z/OS against /bin/sh (IBM's ksh88 port), bash, zsh and oksh. Small pipelines and $( ) cost z/OS up to 277 s where zash stays near ksh88's 19 s; plain external commands cost the same for both.
* docs: space the table delimiter rows so markdownlint stops complainingSean Kurtz12 days1-9/+9
| | | | | | Every table used |-|-| with spaced cells, which MD060 reads as a compact table and flags on every pipe; 11 delimiter rows normalised, plus one 84-column paragraph reflowed. Prose unchanged.
* z/OS: dbx, an AMBLIST map and heap-checked test runsSean Kurtz12 days1-2/+2
| | | | | | | | | | | | | lldb is not on z/OS, so the debug story there is dbx, which needs -g and an unoptimised load: make zos-debug builds ./zash-dbg, zos-dbx runs it, zos-attach attaches to a running shell and zos-dump reads a dump (SVC and SYSMDUMP only: dbx does not read SYSUDUMP or CEEDUMP). AMBLIST maps CSECTs, AMODE/RMODE and entry points of a program object, which is the one question a debugger cannot answer from source: make zos-amblist lists ./zash and the HLASM routine's object module. The docs catch up with C17 and the new targets.
* Hardening: ENV expanded and ignored for set-ID shells; no truncated profile pathSean Kurtz13 days1-48/+47
| | | | | | | POSIX: ENV is parameter-expanded, and not used when the real and effective user or group IDs differ. The expansion reuses the prompt's contained expansion (expand_quietly), so a bad ENV cannot unwind into startup. $HOME/.profile is not sourced if the path would be truncated.
* z/OS builtins: tag, alloc, freeSean Kurtz2026-11-151-0/+9
| | | | | | | | tag shows and sets file tags in chtag -p form without a process; alloc and free pass BPXWDYN requests. They exist only in z/OS builds (free must not hide procps elsewhere) and in make mvs-asan's build, which runs their usage-error test; tests/zos/builtins.sh covers the real work (unrun, VERIFY).
* Docs: tagging, CSI completion, z/OS options, off-z/OS checking; tagging benchSean Kurtz2026-11-151-18/+194
| | | | | | DESIGN.md gains the reference for file tags and conversion, MVS name completion and the CSI glue's storage layout, the per-command z/OS options, and how z/OS code is checked on Linux. bench/tagging.sh measures tagging cost on z/OS (n/a elsewhere).
* Docs: C11, coding style, extensions, interactive layer, job controlSean Kurtz2026-11-131-44/+219
|
* zash: scripting core, test suite and benchmarksSean Kurtz2026-11-121-0/+475
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS). - Parser, expansion, arithmetic, redirection, traps and builtins. - Spawn-first execution: fd plans instead of fork+dup2, in-shell pure builtins for pipelines and command substitution, $(a | b) without a subshell. - Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets. - Tests: posix (dash-generated), zash, process accounting, linux, zos. Nothing has been compiled or run on z/OS yet.