<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/src/complete.c, branch docs/startup-probe</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=docs%2Fstartup-probe</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=docs%2Fstartup-probe'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-20T00:28:13Z</updated>
<entry>
<title>z/OS: load IGGCSI00 once and keep the block for the shell</title>
<updated>2026-11-20T00:28:13Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-20T00:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=a37d3adca684abd6ccca77c58732515efde9dd76'/>
<id>urn:sha1:a37d3adca684abd6ccca77c58732515efde9dd76</id>
<content type='text'>
The search interface was reached through LINK, which asked the system to
find and attach the module on every call -- and completion issues a call
per Tab.  The glue now LOADs the module on the first call, writes its
entry point into the block, and branches to it directly afterwards, and
the block itself is taken from 31-bit storage on the first search and
kept, because IGGCSI00 is AMODE 31 and all three of its addresses have
to stay below 2 GB.

The block is declared packed, so the compiler cannot add padding the
assembler's offsets do not know about, and aligned(8), so the save area
starts on a doubleword.  Its name field is spelled in IBM-1047 bytes
rather than as a C string, so the module is named the same way whatever
character mode this build runs in.

Verified on the machine: SYS1.MA* returns SYS1.MACLIB, SYS1.* returns
135 names, and Tab in an interactive shell completes //'SYS1.MA to
//'SYS1.MACLIB' and lists the members of that PDS.
</content>
</entry>
<entry>
<title>docs: say it in short sentences</title>
<updated>2026-11-19T00:04:28Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T00:04:28Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d51368ffc48a1521796e5f582b489306da5fd5ce'/>
<id>urn:sha1:d51368ffc48a1521796e5f582b489306da5fd5ce</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>completion: no catalog search until a high-level qualifier is complete</title>
<updated>2026-11-18T23:49:34Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T23:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=199f4059adbcfbd8a54d28a2f4a4ff34b0857e84'/>
<id>urn:sha1:199f4059adbcfbd8a54d28a2f4a4ff34b0857e84</id>
<content type='text'>
A filter whose first qualifier is generic makes Catalog Management
resolve aliases generically, and the manual warns that a generic
high-level qualifier can select several catalogs at once: a high-level
of "**" means every user catalog.  Tab is no reason to ask that of the
catalog address space, so completion waits until a whole high-level
qualifier is typed before it searches at all.

The searches are narrower too: entry types U (user catalog connector)
and X (alias) are excluded, since they are not data set names; the
required return-area length is checked before a resume, as Managing
Catalogs asks; and the editor lists at most one screenful of
candidates, with a count of the rest, instead of a fixed 200.
</content>
</entry>
<entry>
<title>z/OS: one catalog per completion search, and stop after two calls</title>
<updated>2026-11-18T23:18:39Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T23:18:39Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=f0459b1227422965820c039d6d6b64336b7f1151'/>
<id>urn:sha1:f0459b1227422965820c039d6d6b64336b7f1151</id>
<content type='text'>
CSIS1CAT keeps a generic high-level qualifier from fanning a Tab key out
over every alias it matches plus the master catalog, which is what
Managing Catalogs warns about for CSIFILTK with generic filters.

Two IGGCSI00 calls already return about 2200 names -- one call fills the
64000-byte work area with ~1100 -- so 64 was sweeping a whole catalog per
keystroke for names no screen could show.

Also: `//'&lt;tab&gt;` searched for "*" and "*.*" before the filter check
refused them; it now returns before allocating anything, and tests/run.sh
can compare an EBCDIC build's transcript against a .ebcdic.exp.
</content>
</entry>
<entry>
<title>z/OS: bound the below-the-bar storage CSI completion uses</title>
<updated>2026-11-18T22:51:30Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T22:51:30Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=0a33a3a6af8aedea339fc1e0defdb421473949cb'/>
<id>urn:sha1:0a33a3a6af8aedea339fc1e0defdb421473949cb</id>
<content type='text'>
One 64 KB block, freed before the search returns, and a nested search is
refused rather than given a second one.  The second catalog search is
skipped once the candidate list is full.
</content>
</entry>
<entry>
<title>completion: bound the name before searching for it</title>
<updated>2026-11-18T20:52:06Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T20:52:06Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=732ecf37a865b0eac8fc32ecdc9085f0845edf35'/>
<id>urn:sha1:732ecf37a865b0eac8fc32ecdc9085f0845edf35</id>
<content type='text'>
GCC's -Wformat-truncation is right: the search patterns are built from
the typed word, so check its length first.  The pwd.h include went with
the HLQ code it served.
</content>
</entry>
<entry>
<title>completion: stop guessing the HLQ for a bare //NAME</title>
<updated>2026-11-18T20:51:08Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-18T20:51:08Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=71d138453af783f5b8d565affd17f066a54ea6d7'/>
<id>urn:sha1:71d138453af783f5b8d565affd17f066a54ea6d7</id>
<content type='text'>
`//NAME` completed against &lt;user&gt;.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.
</content>
</entry>
<entry>
<title>z/OS: file tagging, catalog completion, time, and per-command options</title>
<updated>2026-11-15T23:12:40Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-15T23:12:40Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=73397aa38958ddfe0b0cadbbf5e7e55ba88da644'/>
<id>urn:sha1:73397aa38958ddfe0b0cadbbf5e7e55ba88da644</id>
<content type='text'>
Tagging and conversion (sys_zos.c, redir.c, input.c, var.c, exec.c):
- _TAG_REDIR_IN/OUT/ERR as /bin/sh documents them, cached by variable
  hooks so redirection tests a byte; honoured as a prefix on external
  commands and on pipeline stages.
- ASCII builds tag new output and here-document files as text, tag
  pipes IBM-1047 (set +o pipetag to stop), and switch on autoconvert.
- Scripts, . files, profile and ENV are read in either character set:
  tagged files get F_CONTROL_CVT, untagged ones are sniffed.
- tag/chtag primitives (sys_tag_get/sys_tag_set) for a builtin to come.

Data set completion (complete.c, mvsfmt.[ch], zos_csi.s):
- //'HLQ.PART, "//'HLQ.PART, //NAME (user HLQ), //'DSN(MEM, //DD:NAME
  complete one qualifier at a time from the Catalog Search Interface,
  PDS directories and the TIOT.
- IGGCSI00 is called through HLASM glue that switches to AMODE 31 and
  keeps every register and parameter below the bar (VERIFY).
- The work-area, directory and TIOT decoders are portable and run on
  Linux against a stand-in catalog that produces the real EBCDIC bytes,
  including CSI resume and directory-block splits; fuzzed with
  libFuzzer (make fuzz).
- A lone completion inside quotes now closes the quote.

Other z/OS features:
- time [-p] keyword with shell/children CPU split.
- set -o jobnames (_BPX_JOBNAME per command), set -o shareas
  (_BPX_SHAREAS=YES for foreground commands only), set -o msgid
  (ZSHnnnnE/W message IDs), ulimit -M (MEMLIMIT), ZOS_SYSNAME,
  ZOS_SYSPLEX, ZOS_RELEASE, ZOS_ASID, ZOS_JOBNAME, prompt \S.
- BPXWDYN entry point for an alloc builtin to come.

Checking z/OS code off z/OS:
- make zos-lint compiles sys_zos.c against declarations transcribed
  from the z/OS headers, and the rest with the MVS paths forced on.
- make mvs-asan runs the suite with the MVS paths on, under ASan/UBSan.
- make asan and make valgrind now check for leaks.
</content>
</entry>
<entry>
<title>Add extensions, job control and the interactive layer; convert to C11</title>
<updated>2026-11-13T02:24:39Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-13T02:24:39Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=8cb846c0ad784c4ce249958113d59a331dd207e8'/>
<id>urn:sha1:8cb846c0ad784c4ce249958113d59a331dd207e8</id>
<content type='text'>
Language: $'...', aliases, function keyword, (( )) and let, typeset and
integer, print, whence, setvar, ulimit, read -t, RANDOM, SECONDS, the
ERR trap, trap -p, chdir, and more set -o names.

Job control: a job table, process groups, terminal hand-over through
the spawn layer, jobs/fg/bg, wait %n and kill %n.

Interactive: prompt expansion, a built-in line editor with emacs and vi
modes, completion, history with fc and HISTFILE, and libedit as a
compile-time alternative (make EDIT=libedit LDLIBS=-ledit).

The source is now C11 (was C23), uses typedef'd structs and enums, and
has Doxygen comments throughout.  Adds .clang-tidy, .clangd and a
Doxyfile.
</content>
</entry>
</feed>
