<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/bench/dbracket.sh, branch main</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=main</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-19T00:56:40Z</updated>
<entry>
<title>bench: a probe must fail when the feature is missing</title>
<updated>2026-11-19T00:56:40Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T00:56:40Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=54a8e27a0100ee625884d0be2b03325833c60407'/>
<id>urn:sha1:54a8e27a0100ee625884d0be2b03325833c60407</id>
<content type='text'>
An if with no else clause answers 0 even when its condition failed, so
dbracket's probe reported success on dash and the row said differs
instead of n/a.  The probe now says so itself.
</content>
</entry>
<entry>
<title>bench: keep the arithmetic totals inside 32 bits</title>
<updated>2026-11-19T00:45:58Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T00:45:58Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d1cec2ff9aa9f8aaf4ad32f28f4f64e18637417e'/>
<id>urn:sha1:d1cec2ff9aa9f8aaf4ad32f28f4f64e18637417e</id>
<content type='text'>
ksh88 works in 32-bit integers, so summing i*2 over 200000 iterations
overflowed and the benchmark reported "differs" instead of a time: the
same script, two answers.  Summing (i % 100) * 2 does the same work and
fits in 31 bits.
</content>
</entry>
<entry>
<title>bench: name the columns, and run the ksh features against ksh88</title>
<updated>2026-11-19T00:31:46Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-19T00:31:46Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=f32599e10de546a11ed90ee7f50a0dbef8f6df84'/>
<id>urn:sha1:f32599e10de546a11ed90ee7f50a0dbef8f6df84</id>
<content type='text'>
The column for z/OS /bin/sh said sh, which hid that it is IBM's ksh88
port, and two benchmarks skipped it for the wrong reason: dbracket probed
[[ ]] with eval, which ksh88 rejects even though [[ ]] works, and
arithcmd used (( )) as a command, which is ksh93 and not ksh88.

run.sh now takes shell=label arguments and labels /bin/sh as ksh88 on
z/OS, and BENCH selects a subset.  dbracket probes the form it uses.
arithcmd keeps to typeset -i, let and $(( )), so ksh88 runs it, and the
(( )) command form moved to dparen.sh.
</content>
</entry>
<entry>
<title>Add [[ ]], make coverage, and fixes found by edge-case tests</title>
<updated>2026-11-15T15:20:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-15T15:20:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=426042660d937ada13bfa53881f6a3217d64a13b'/>
<id>urn:sha1:426042660d937ada13bfa53881f6a3217d64a13b</id>
<content type='text'>
[[ ]] is parsed into a tree and evaluated without argv or lookup.
Fixes: errexit inside a tested subshell, the ${x:?} message, arithmetic
on variables holding expressions, printf %c of an empty argument,
job text for arithmetic, and \n and \e prompt escapes.
</content>
</entry>
</feed>
