| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
zash was AMODE 64, so calling the AMODE 31 IGGCSI00 needed assembler
glue (zos_csi.s) that switched addressing mode around the branch. Built
with -m32 the program is 31-bit itself: the call goes through a plain
function pointer, the work area and the saved registers live in one
31-bit block in C, and the glue is gone.
The rest of the tree follows the change: the build, the off-z/OS lint
shim, DESIGN.md and README.md, the benches, the Lean spec of the
pattern matcher, and the tests that recorded what the extra address bits
had changed.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The z/OS column was headed /bin/sh, which read as any old sh and hid
that it is IBM's ksh88 port. Both tables are re-measured with the new
report and deploy scripts, and the [[ ]] and (( )) rows are split
apart, since ksh88 has the first and not the second.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
README.md shows the shell's icon on a light or dark background, has a
table of contents, and says C17 rather than C11 (the tree has built C17
since b4d6bf1).
tests/zos/security.sh is the security-relevant half of the suite: a file
created by redirection or mkdir takes the umask, a redirect into a
directory without write permission fails, the current directory is not
searched for a command, ENV is not read by a non-interactive shell, and
neither an expansion nor a file name is re-parsed.
bench/report.sh counts a generated log by level and hour, and
bench/deploy.sh renders and verifies 100 configs from a template. Both
are realistic scripts and both are compared for output against other
shells by bench/run.sh, so they fail as tests as well as being timed.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Both zos-ascii and zos-ebcdic wrote ./zash, so `make zos-ascii` after an
EBCDIC build was "up to date" and left the EBCDIC program in place --
which cost a debugging session: the "ASCII" binary on cbt was EBCDIC.
ASCII is the build zopen uses and the one the tests run, so it keeps
./zash; EBCDIC is ./zash-ebcdic.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
`bind -l` lists the actions the editor can run and `bind
'^[[H'=beginning-of-line` gives one to a key sequence, in the notation
the BSD shells use. Only the names edit_key() already knows are
accepted, so a binding cannot do anything a key could not; `-m` (macro)
is refused rather than ignored. The defaults stay bash's: this is for
people whose .kshrc moves the arrow keys, not a move towards ksh.
`\[` and `\]` in PS1 say "this part does not move the cursor". The
width rule already skips control sequences, so dropping the markers is
the whole implementation, and a coloured prompt now shows its text
instead of the markers.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
README carried "nothing has been compiled or run on z/OS yet", which
stopped being true several commits ago, and promised z/OS numbers for
the process-creation rows. Both tables are now measured: Linux against
dash, bash, ksh and oksh, and z/OS against /bin/sh (IBM's ksh88 port),
bash, zsh and oksh. Small pipelines and $( ) cost z/OS up to 277 s
where zash stays near ksh88's 19 s; plain external commands cost the
same for both.
|
| |
|
|
|
|
| |
Every table used |-|-| with spaced cells, which MD060 reads as a compact
table and flags on every pipe; 11 delimiter rows normalised, plus one
84-column paragraph reflowed. Prose unchanged.
|
| |
|
|
|
|
|
|
| |
Checked on the mainframe: `make zos-debug` builds, `st in main` stops at
src/main.c:401 with the source shown, and next/where keep reporting file
and line, but `st at "file":line" cannot resolve the source on
ibm-clang's debug info. `make zos-amblist` writes a 48545-line map of
./zash (RMODE ANY, XPLINK, PO format 4, main entry AMODE 64).
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
lldb is not on z/OS, so the debug story there is dbx, which needs -g and
an unoptimised load: make zos-debug builds ./zash-dbg, zos-dbx runs it,
zos-attach attaches to a running shell and zos-dump reads a dump
(SVC and SYSMDUMP only: dbx does not read SYSUDUMP or CEEDUMP).
AMBLIST maps CSECTs, AMODE/RMODE and entry points of a program object,
which is the one question a debugger cannot answer from source:
make zos-amblist lists ./zash and the HLASM routine's object module.
The docs catch up with C17 and the new targets.
|
| |
|
|
|
|
|
| |
POSIX: ENV is parameter-expanded, and not used when the real and
effective user or group IDs differ. The expansion reuses the prompt's
contained expansion (expand_quietly), so a bad ENV cannot unwind into
startup. $HOME/.profile is not sourced if the path would be truncated.
|
| | |
|
|
|
A clean-slate POSIX shell for z/OS UNIX in the Almquist tradition, written
in C23 for Clang (Linux) and IBM Open XL C/C++ (z/OS).
- Parser, expansion, arithmetic, redirection, traps and builtins.
- Spawn-first execution: fd plans instead of fork+dup2, in-shell pure
builtins for pipelines and command substitution, $(a | b) without a
subshell.
- Flat .POSIX Makefile; asan, valgrind, bench, compdb and z/OS targets.
- Tests: posix (dash-generated), zash, process accounting, linux, zos.
Nothing has been compiled or run on z/OS yet.
|