z/OS UNIX System Services

A fast POSIX shell built for z/OS.

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.

OMVS / SSH zash
$ 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$

Why zash

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.

Bundled line editing

Ships with a statically linked port of NetBSD libedit, interactive completion, and bash-compatible prompts and history.

ASCII or EBCDIC builds

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.

Small, fast, portable C

Strict C11 with zero external runtime dependencies beyond system curses. Also builds and tests natively on Linux and BSD with clang or gcc.

Quick start & build

Clone from GitHub or our self-hosted Git mirror, then build with any POSIX make.

1. Clone

# GitHub
git clone https://github.com/skurtz97/zash.git

# Or directly from Abendless Git
git clone https://git.abendless.com/zash.git

2. Build on z/OS

# 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=

3. Build on Linux / BSD

make
make check
make install PREFIX="$HOME/.local"

# Bundle a tarball to transfer to z/OS
make dist

Documentation & notes

Articles and blog live on abendless.com

Read technical articles on z/OS file tagging and builds, follow development on the blog, or get in touch via the contact page.