<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git, 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-25T18:19:41Z</updated>
<entry>
<title>z/OS: convert a script's character set only in an ASCII build</title>
<updated>2026-11-25T18:19:41Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T18:19:41Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=5d830cb1c04da59553d3af848340162a7be9fa58'/>
<id>urn:sha1:5d830cb1c04da59553d3af848340162a7be9fa58</id>
<content type='text'>
input_push_fd() called sys_input_cvt() for every script on z/OS, and that
routine converts to the program's own CCSID.  In an ASCII build reading
an IBM-1047 system it therefore either asked for EBCDIC-to-EBCDIC
conversion, which is a no-op that returns 0, or read the bytes
unconverted; SETCVTON on a descriptor that sys_dupfd() has renumbered
returns 0 and converts nothing on this system either.  The parser then
saw EBCDIC and dropped the script.

An EBCDIC build reads IBM-1047 natively and never wanted the call.  With
the conversion left to ASCII builds, posix/traps and scripts/signals pass
on z/OS: 93 passed, 4 skipped, 0 failed.

The untagged-file case still depends on SETCVTON with an explicit fccsid,
which is unverified, so the VERIFY note stays.
</content>
</entry>
<entry>
<title>Merge pull request #27 from skurtz97/feat/web-site</title>
<updated>2026-11-25T07:02:16Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T07:02:16Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=7c161e69efaf67349edb32e42c113e5c0b7944f7'/>
<id>urn:sha1:7c161e69efaf67349edb32e42c113e5c0b7944f7</id>
<content type='text'>
web: a Hugo site for zash</content>
</entry>
<entry>
<title>web: a Hugo site for zash</title>
<updated>2026-11-25T07:02:03Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T07:02:03Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=392381b2de8bce919735fce753b3740747f2b2fa'/>
<id>urn:sha1:392381b2de8bce919735fce753b3740747f2b2fa</id>
<content type='text'>
A site in web/, built with Hugo and no theme module, so it builds offline
from one Go binary:

  hugo server --source web     preview on localhost:1313
  hugo --source web --minify   -&gt; web/public, which is ignored

Pages: a home page with the shell's pitch, a terminal card, the four
properties that define it and a short benchmark table, plus three docs
pages (building, development, status) in a section with a sidebar. The
palette comes from packaging/zash-logo.svg: mainframe navy, periwinkle, a
signal blue. Dark only, monospace where a shell would be monospaced.

Highlighting uses classes (`markup.highlight.noClasses = false`) against
assets/css/chroma.css generated with `hugo gen chromastyles --style=
tokyonight-night`, so code sits in the page instead of a monokai box.
site.css and copy.js go through Hugo's minify+fingerprint pipeline.

Two .gitignore fixes this needed: `docs/` matched web/content/docs/ (the
generated Doxygen output is at the root, so it is `/docs/` now), and
Hugo's .hugo_build.lock is ignored.

Not published yet: zash is private and Pages is not available for a
private repository on a free plan, so web/README.md records the options.
</content>
</entry>
<entry>
<title>C23: nullptr for null pointers, constexpr for typed constants</title>
<updated>2026-11-25T06:31:26Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c7f23b8a5fb86f8df51809aca64415bcadcaa9f6'/>
<id>urn:sha1:c7f23b8a5fb86f8df51809aca64415bcadcaa9f6</id>
<content type='text'>
nullptr in every place a null pointer constant was meant; NULL is gone
from src/.

constexpr where it improves on #define without costing anything: the
IGGCSI00 work-area offsets and sizes, and the scalar sizes MVS_DSN_MAX,
CSI_FIELD_LEN, CSI_WORK_MIN, PDS_DIRBLK, CSI_WORK, CSI_MAX_CALLS.  A
constexpr in C is a constant expression, so it still bounds the arrays
that use it, and it now carries a type and can be checked with
static_assert.  Feature switches (#if), the CSIETYPE/EBCDIC byte
constants read as octets, and the related-constant enum sets stay as
they were.
</content>
</entry>
<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>Merge pull request #26 from skurtz97/chore/c23</title>
<updated>2026-11-25T06:18:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:18:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=3cb951b393680a3dadff99d47e854f7f85065178'/>
<id>urn:sha1:3cb951b393680a3dadff99d47e854f7f85065178</id>
<content type='text'>
C23: compile as C23 and use its spelling</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>Merge pull request #25 from skurtz97/build/zos-64bit</title>
<updated>2026-11-25T06:06:55Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:06:55Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=ef023766c6c62b3f1b5bd002a061512a55531e46'/>
<id>urn:sha1:ef023766c6c62b3f1b5bd002a061512a55531e46</id>
<content type='text'>
build/zos 64bit</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>
</feed>
