<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests/zash/select.exp, 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-28T03:48:49Z</updated>
<entry>
<title>feat: select, the ksh88 menu loop</title>
<updated>2026-11-28T03:48:49Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-28T03:48:49Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=ced8928b067a3bd3047f7e094eb9d9d575ae9444'/>
<id>urn:sha1:ced8928b067a3bd3047f7e094eb9d9d575ae9444</id>
<content type='text'>
IBM's /bin/sh is of the KornShell line and `select` is part of what its
scripts use, so the shell that replaces it has to have it.  The menu goes
to stderr as "number TAB word", then PS3 (default "#? "); the answer is
read with the rules of `read REPLY`; a number in range picks that word,
anything else leaves the variable empty and the body still runs, a blank
line only prompts again, and end of input ends the loop.

The node is the `for` node with a `menu` flag, since the two differ only
in what the body sees.  tests/zash/select.sh prints the same bytes under
zash and under the CBT /bin/sh; the specification has the rule.
</content>
</entry>
</feed>
