| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
buildenv
- Remove internal z/OS test-host name from notes/review-2026-11-27.md,
web/layouts/home.html, and tests/zos/zosvars.{sh,exp} (making zosvars
portable to any z/OS LPAR by comparing against live ZOS_SYSNAME).
- Add GitHub Actions CI status badge to README.md.
- Bump buildenv version to 0.5.0 with ZOPEN_STABLE_URL, ZOPEN_STABLE_TAG
(v0.5.0-beta), ZOPEN_DEV_URL, and explicit empty ZOPEN_RUNTIME_DEPS.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Guard #pragma linkage with _LP64 (OS on -m64, OS_UPSTACK on -m32), use
bit 31 (0x80000000u) for the OS VL bit, and allocate IGGCSI00/BPXWDY2
work areas via __malloc31() per z/OS C/C++ Runtime Library Reference and
Open XL C/C++ 2.2 Compiler Reference.
- Use isupper()/isdigit() in complete.c hlq_ok() and an EBCDIC/ASCII-safe
ctrl_byte() helper in edit_builtin.c bind_keys().
- Tag temp files with sys_tmp_tag() in fc_edit() and edit_external(), add
EINTR retry loops in edit_external(), route edit_bind_list() through
out1, and clamp CSI/vi repeat counts against signed int overflow.
- Destroy posix_spawn_file_actions_t on error in sys_spawn() and clamp
put_name() copy length in sys_posix.c.
- Replace non-ISO8859-1 dashes in README.md and C-PROGRAMMING-STANDARDS.md
and mark notes/review-2026-11-27.md UTF-8 in .gitattributes so git
checkout succeeds on z/OS.
Verified locally on Linux (make, make zos-lint, make check: 128/129 pass,
only pre-existing linux/i-dscomplete differs); z/OS CBT verification next.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
The shell it replaces is not a different language: it is of the
KornShell line, and a script written for it runs under zash. Say that
where the documents used to imply the opposite -- "the dash of z/OS",
"the z/OS /bin/sh's semantics are not emulated" -- and sort what is
left into places where IBM departs from POSIX (zash follows POSIX) and
the few ksh88 features zash declines.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The home page drops the feature-card grid for a numbered spec sheet and a
full-width measured transcript. The docs pages get three columns on a
wide screen - sections, text, and the page's own headings - with a rule
that runs the height of the text, and a row of section chips on a phone.
The hero carries the logo's periwinkle as a gradient and the grid of a
terminal screen, and the header a single lit hairline.
The generated README, Design and Specification pages no longer carry the
logo block, the byline, their own contents list or a second title: the
site header, the sidebar and the front matter do that. Links between the
documents are page links, and the GitHub-only affordances (sidebar blob
links, "Edit this page") are gone.
The xlc compiler is no longer called legacy in README, DESIGN or status.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
libedit was a compile-time alternative (`make EDIT=libedit`). It goes:
FreeBSD and NetBSD `sh` use it because it is in their base system, which
is not the case on z/OS, and it cost about a third of a millisecond to
reach the prompt -- three more shared libraries, `el_init()`, an
`~/.editrc` read and a copy of the history -- for the same cost per key.
What it bought was `~/.editrc` bindings and a kill ring; `bind` and the
built-in editor's own bindings cover the keys, and a second editor meant
a second build mode and a second set of interactive expectations, with
seven tests skipping under it.
Everything that existed only to serve two editors goes with it: the
`EDIT` switch and the two `edit_$(EDIT)` paths in the makefile, the
`$ZASH_EDITOR` variable the tests used to skip, the skip guards in
`tests/linux/`, the NUL stripping in `ptydrive.py` that libedit's redraw
needed, and the parallel paragraphs in README.md, DESIGN.md,
bench/README.md and the two website pages. `bench/README.md` keeps the
measurement, since that is why the decision is written in DESIGN.md.
Checked on Linux (97 passed, 1 skipped, the one known local failure in
linux/i-dscomplete) and on z/OS (64 passed, 3 skipped, 0 failed, plus the
EBCDIC build).
|
| |
|
|
|
|
|
|
|
| |
README's benchmark table is the 64-bit run with the run-time in the LPA
and zsh installed (it was the 2.1-era table, and its zsh column was the
31 ms start-up, not zsh). bench/README.md keeps the 2.1 numbers as the
history of what the LPA fixed, and gains the start-up table it now has a
measurement for. investigation.md's §2 recommendation was still "build
31-bit"; it now says what happened instead.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The z/OS toolchain would not take C23 when this was first written; IBM
Open XL C/C++ 2.2 does (clang 21.1, __STDC_VERSION__ 202311), and so
does the clang on Linux. -std=c23 in the Makefile, and the standard
attributes in place of the ones that were macros:
_Noreturn -> [[noreturn]] (on declarations and definitions)
_Static_assert -> static_assert
_Alignas -> alignas
NODISCARD -> [[nodiscard]]
FALLTHROUGH -> [[fallthrough]]
PRINTFLIKE and UNREACHABLE() stay macros: [[gnu::format]] and
[[gnu::unreachable]] are vendor attributes, and the standard has no
[[format]] or [[unreachable]] for a header-only project yet.
Standard-library additions newer than the libc of either system
(<stdbit.h>, <stdckdint.h>) are not used, so gcc -std=c2x still builds
the tree warning-free. The suite, ASan/UBSan and the z/OS lint pass as
before; linux/i-dscomplete remains the one local failure it was on
main.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
zash is built 64-bit on z/OS now: -m64 for the ASCII and the EBCDIC
build and for the debug build, and `make` as well as `make zash` land
on zos-ascii there. The 31-bit build existed for the 64-bit start and
fork costs, which were the C run-time being loaded out of the linklist;
with CELQ* in the LPA the widths measure the same and the shell is
built at the width IBM builds for.
The catalog and dynamic-allocation modules are AMODE 31 and OS_UPSTACK
does not exist at -m64, so both are declared with plain OS linkage,
which is the 64-bit glue for an AMODE 31 callee. Neither module is
installed on the test system, so that path is unverified there;
csi_call() still catches a program check and retires the catalog.
IGGCSI00's VL bit comes from the width of a pointer, not 0x80000000.
Documentation follows: README gains a Recommendations section for the
LPA change and loses the 31-bit rationale; DESIGN.md's cost model,
catalog linkage and open questions match the measurements; bench/README
states the current width and the rerun numbers; investigation.md
records the decision.
|
| |\
| |
| | |
docs: the 64-bit start-up cost is LE, not the address mode
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |/ |
|
| |
|
|
| |
Remove ?= and $(shell) from the docs browser lookup, use $(MAKE) for recursion, and make the z/OS default naming explicit.
|
| |
|
|
|
| |
Drops the ksh88 lineage claim; the shell is /bin/sh, and the ksh93
contrast stays where it explains the n/a row.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
The column is /bin/sh on z/OS. Calling it ksh88 in the table implies a shell
release z/OS does not ship; the prose now says what it is, notes the lineage,
and says that run.sh prints the label ksh88.
|
| |
|
|
|
|
|
|
| |
Clang only on Linux (GCC reports -Wclobbered, so "builds it cleanly" was not
true any more), drop the claim that make is never invoked recursively (all,
check and doc re-enter it), note the targets the list was missing (install,
spec, other-docs, zos-lint, mvs-asan) and the typst dependency, and stop
calling [[ ]] planned — it is implemented, tested and benchmarked.
|
| | |
|
| |\
| |
| |
| |
| |
| |
| | |
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.
|
| |/
|
|
|
|
|
|
|
|
|
| |
README and DESIGN.md showed a light/dark <picture> pair, copied from a
layout that had no centring; both now use packaging/zash-logo.svg inside
a centred paragraph, the same header the typst spec already uses.
make clean listed neither zash-debug nor fuzz-mvsfmt, so both survived a
clean. The shellcheck directive at the top of the makefile now also
covers the $(OBJS)-style expansions and the recipe `if` it reads as shell
syntax.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The z/OS column was headed /bin/sh, which read as any old sh and hid
that it is IBM's ksh88 port. Both tables are re-measured with the new
report and deploy scripts, and the [[ ]] and (( )) rows are split
apart, since ksh88 has the first and not the second.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
README.md shows the shell's icon on a light or dark background, has a
table of contents, and says C17 rather than C11 (the tree has built C17
since b4d6bf1).
tests/zos/security.sh is the security-relevant half of the suite: a file
created by redirection or mkdir takes the umask, a redirect into a
directory without write permission fails, the current directory is not
searched for a command, ENV is not read by a non-interactive shell, and
neither an expansion nor a file name is re-parsed.
bench/report.sh counts a generated log by level and hour, and
bench/deploy.sh renders and verifies 100 configs from a template. Both
are realistic scripts and both are compared for output against other
shells by bench/run.sh, so they fail as tests as well as being timed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
`bind -l` lists the actions the editor can run and `bind
'^[[H'=beginning-of-line` gives one to a key sequence, in the notation
the BSD shells use. Only the names edit_key() already knows are
accepted, so a binding cannot do anything a key could not; `-m` (macro)
is refused rather than ignored. The defaults stay bash's: this is for
people whose .kshrc moves the arrow keys, not a move towards ksh.
`\[` and `\]` in PS1 say "this part does not move the cursor". The
width rule already skips control sequences, so dropping the markers is
the whole implementation, and a coloured prompt now shows its text
instead of the markers.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Checked on the mainframe: `make zos-debug` builds, `st in main` stops at
src/main.c:401 with the source shown, and next/where keep reporting file
and line, but `st at "file":line" cannot resolve the source on
ibm-clang's debug info. `make zos-amblist` writes a 48545-line map of
./zash (RMODE ANY, XPLINK, PO format 4, main entry AMODE 64).
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
|
|
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.
|