diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-27 21:48:49 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-27 21:48:49 -0600 |
| commit | ced8928b067a3bd3047f7e094eb9d9d575ae9444 (patch) | |
| tree | 9f8b20592193e5e3cad154d318c36d79289e8ebe /tests/tools/git@git.abendless.com:/srv/git | |
| parent | 1cb0581bd9e9ac62cc31f0efa39a70d405f699a9 (diff) | |
| download | zash-ced8928b067a3bd3047f7e094eb9d9d575ae9444.tar.gz | |
feat: select, the ksh88 menu loop
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.
Diffstat (limited to 'tests/tools/git@git.abendless.com:/srv/git')
0 files changed, 0 insertions, 0 deletions
