<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/Makefile, branch fix/zos-script-charset</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=fix%2Fzos-script-charset</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=fix%2Fzos-script-charset'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-25T06:26:25Z</updated>
<entry>
<title>repo: drop patches/, move spec-pdf.sh out of scripts/</title>
<updated>2026-11-25T06:26:25Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=7a7320b6a0d7dd6864b708b7e74fb5032a5bdf8e'/>
<id>urn:sha1:7a7320b6a0d7dd6864b708b7e74fb5032a5bdf8e</id>
<content type='text'>
patches/ held one file, a byte-identical copy of LICENSE; no port
patches anything (ZOPEN_TYPE=LOCAL builds the checkout).  The single
script was the typst spec builder, which is a build step, so it lives
beside the other build machinery.
</content>
</entry>
<entry>
<title>C23: compile as C23 and use its spelling</title>
<updated>2026-11-25T06:17:57Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:17:57Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=122dd54f6d915240cd5327d08f9b36e243983956'/>
<id>urn:sha1:122dd54f6d915240cd5327d08f9b36e243983956</id>
<content type='text'>
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      -&gt; [[noreturn]] (on declarations and definitions)
  _Static_assert -&gt; static_assert
  _Alignas       -&gt; alignas
  NODISCARD      -&gt; [[nodiscard]]
  FALLTHROUGH    -&gt; [[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
(&lt;stdbit.h&gt;, &lt;stdckdint.h&gt;) 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.
</content>
</entry>
<entry>
<title>build: make the 64-bit z/OS build the default</title>
<updated>2026-11-25T06:06:46Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:06:46Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b786aac5c1578a5e87c42db8273e13af09ab5ef7'/>
<id>urn:sha1:b786aac5c1578a5e87c42db8273e13af09ab5ef7</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>build: 64-bit on z/OS</title>
<updated>2026-11-25T05:21:27Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T05:21:27Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=da07f0274c8c92e0ff5f2e4a66fb867a12f2cf08'/>
<id>urn:sha1:da07f0274c8c92e0ff5f2e4a66fb867a12f2cf08</id>
<content type='text'>
The 31-bit choice existed for one reason: a 64-bit start cost 29 ms
against 1 ms and a 64-bit fork() 4.2 ms against 0.10.  That was the
64-bit C run-time being loaded out of CEE.SCEERUN2 on the linklist on
every start; with CELQ* in the dynamic LPA both widths cost 1.5 ms and
fork() 0.10 ms (notes/investigation.md has the before and after).

So build the shell at the width IBM builds for: -m64 for both the
ASCII and the EBCDIC build, and for the debug build.

OS_UPSTACK does not exist at -m64, so the two AMODE 31 services
(IGGCSI00, BPXWDY2) are declared with plain OS linkage, which is what
the 64-bit glue implements.  IGGCSI00's VL bit is set from the width of
a pointer now, not with 0x80000000.  Neither module loads on this
system, so the linkage itself stays unverified; csi_call() still traps a
program check and retires the catalog if it abends.
</content>
</entry>
<entry>
<title>Measure why 64-bit start-up is slow, and record the answer (#16)</title>
<updated>2026-11-25T01:52:27Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T01:52:27Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c0e48819c3077ccc020deb8b9ffe9de9911ab3d2'/>
<id>urn:sha1:c0e48819c3077ccc020deb8b9ffe9de9911ab3d2</id>
<content type='text'>
* bench: time one start with a parent that is not an LE program

`bench/startup.sh` times a shell loop, so on z/OS every child pays the
31-bit shell's own price and the 64-bit start-up cost cannot be
separated from it.  `tests/tools/spawn` forks one child at a time and
reports wall and child CPU per start, and `bench/le-init.sh` builds the
31-bit, 64-bit and HLASM programs it times in a work directory, so the
table needs nothing checked in but the script.

The child's environment is built by hand and passed to `execve`:
`putenv` after LE has initialized is not handed to the child, and
`_CEE_RUNOPTS` exported to an LE parent makes that parent's `execl`
fail, which a fork loop that does not check exit status reports as a
fast start.

* notes: the 64-bit start-up cost is LE waiting, not the address mode

Measured on the CBT z/OS 29.00 system: a 64-bit HLASM program with no
LE starts in 1.39 ms, the same source at -m32 in 1.5-1.8 ms, so the
address space, the loader and XPLINK are free.  A -m64 start spends
4.5-28 ms before the first instruction of main, of which only 1.0-1.25
ms is charged to the child: the rest is wall time on something shared,
which does not overlap between concurrent starts while it is at 28 ms
and does once it drops to 5.8 ms.  No _CEE_RUNOPTS option moves it.

That retracts an earlier POSIX(OFF) result in these notes: exporting the
option to an LE parent makes its execl fail, so the run timed failed
execs.  Applied to the child, POSIX(OFF) changes nothing.</content>
</entry>
<entry>
<title>Merge pull request #15 from skurtz97/bench/startup</title>
<updated>2026-11-24T23:53:26Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T23:53:26Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=70efa08c0698bac43f0f5a0c5365e696613ac1e6'/>
<id>urn:sha1:70efa08c0698bac43f0f5a0c5365e696613ac1e6</id>
<content type='text'>
bench: measure start-up wall time against the other shells</content>
</entry>
<entry>
<title>bench: measure start-up wall time against the other shells</title>
<updated>2026-11-24T22:33:33Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:30:56Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=a36e053993ce116fba0c375b1b6ac44e1d118e51'/>
<id>urn:sha1:a36e053993ce116fba0c375b1b6ac44e1d118e51</id>
<content type='text'>
run.sh times CPU, so the milliseconds a process spends before it runs
anything never appear in it: zash can read 0.00 in a subshell row while
zash -c : costs a few ms of wall time.  bench/startup.sh measures that
directly, one start per command, and bench/README.md now has a table
instead of a warning that the number is missing.

The clock is tests/tools/now.c, ten lines, because /bin/date on z/OS
has no sub-second format.
</content>
</entry>
<entry>
<title>Merge pull request #14 from skurtz97/test/zos-leakcheck</title>
<updated>2026-11-24T22:22:02Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T22:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=51467fc9a631580719630512e3c70034f7ff0d87'/>
<id>urn:sha1:51467fc9a631580719630512e3c70034f7ff0d87</id>
<content type='text'>
test: fail when zash leaks under LE's heap checker</content>
</entry>
<entry>
<title>test: fail when zash leaks under LE's heap checker</title>
<updated>2026-11-24T20:25:41Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T20:25:41Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e7e469d8f3c48852786468ceb668afe6517c37c2'/>
<id>urn:sha1:e7e469d8f3c48852786468ceb668afe6517c37c2</id>
<content type='text'>
HEAPCHK with a call depth and no per-call walk makes LE write the heap
storage diagnostics into a CEEDUMP at normal termination: every
allocation still live at exit, with the traceback that made it.  A
shell leaves working storage live on purpose, so the total says nothing
by itself; a leak shows as the total growing with the work done.

tests/zos/leak.sh therefore runs one builtin-only loop body at 100 and
1000 iterations in the same shell, sums the live bytes out of each
report, and fails if the second run is more than 2 KiB larger.

`make zos-leakcheck` is the target: it points _CEE_DMPTARG at
build/leaks and skips zash/limits, which recurses deep enough to run out
of storage under the checker.
</content>
</entry>
<entry>
<title>fix: stop make check after the z/OS test passes</title>
<updated>2026-11-24T05:18:45Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T05:18:45Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c3b73e68d0003824813448fc9729233d4f8f8000'/>
<id>urn:sha1:c3b73e68d0003824813448fc9729233d4f8f8000</id>
<content type='text'>
</content>
</entry>
</feed>
