Built for z/OS UNIX
Native support for z/OS spawn(), ASCII/EBCDIC file tagging, MVS data
sets, and TSO commands—without fighting a bolted-on portability layer.
z/OS UNIX System Services
zash is an Almquist-family POSIX shell written in C for z/OS UNIX,
Linux, and BSD. It pairs dash-class scripting speed with bundled NetBSD
libedit line editing and first-class z/OS support.
$ zash skurtz@SY1:~/src$ ls -T Makefile t ISO8859-1 T=on Makefile skurtz@SY1:~/src$ make zos && make check ibm-clang -std=c11 -m64 -O2 ... All portable & z/OS checks passed (RC=0000) skurtz@SY1:~/src$
Native support for z/OS spawn(), ASCII/EBCDIC file tagging, MVS data
sets, and TSO commands—without fighting a bolted-on portability layer.
Ships with a statically linked port of NetBSD libedit, interactive
completion, and bash-compatible prompts and history.
Compiles cleanly with IBM Open XL C/C++ (ibm-clang -m64) or IBM z/OS XL
C (xlc -q64) in either ASCII (zopen convention) or EBCDIC mode.
Strict C11 with zero external runtime dependencies beyond system curses. Also builds and tests natively on Linux and BSD with clang or gcc.
Clone from GitHub or our self-hosted Git mirror, then build with any POSIX
make.
# GitHub
git clone https://github.com/skurtz97/zash.git
# Or directly from Abendless Git
git clone https://git.abendless.com/zash.git
# IBM Open XL C/C++ (ASCII, default)
make zos && make check
# IBM Open XL C/C++ (EBCDIC)
make zos OXL_ASCII=
# IBM z/OS XL C (ASCII / EBCDIC)
make xlc
make xlc XLC_ASCII=
make
make check
make install PREFIX="$HOME/.local"
# Bundle a tarball to transfer to z/OS
make dist
Documentation & notes
Read technical articles on z/OS file tagging and builds, follow development on the blog, or get in touch via the contact page.