







In this article, I make a real, working interactive shell written in Zig. Though essentially a toy, it demonstrates the incredible elegance of the fork() system call and is an example of what can be done with absolutely no runtime memory allocations.
Moving beyond fork() + exec()
Since the earliest days of Unix, two of the core process-oriented system calls have been fork() [...]
Systems Programming with Zig
Zig delivers performance, reliability, and complex integration in systems programming in a simple, modern package. Zig hits the sweet spot for systems programming. This new programming language is high-performance, low-level, ultra-reliable, and perfectly suited for serious projects like writing libraries, daemons and shell utilities, and even operating systems and embedded code. Systems Programming with Zig shows you how to write quality, useful Zig applications without relying on libraries or frameworks-even if you’re new systems programming. In Systems Programming with Zig you’ll learn how to: Understand the Zig perspective on systems programming Write idiomatic Zig code Integrate Zig with C, systems libraries, and scripting languages Networking, interpreters, and graphics from the ground up Unlike UI-centric applications that form the public face of your software, systems programs like OS kernels, device drivers, and utilities interact directly with the hardware or operating system. In these low-level programs, performance and safety are paramount. Zig is a new programming language that builds on the legacy of C, C++, and even Rust to provide a high-productivity systems programming environment that does not rely on awkward libraries and frameworks.

Es: A shell with higher-order functions
In the fall of 1990, one of us (Rakitzis) re-implemented the Plan 9 command interpreter, rc, for use as a UNIX shell. Experience with that shell led us to wonder whether a more general approach to the design of shells was possible, and this paper describes the result of that experimentation. We applied concepts from modern functional programming languages, such as Scheme and ML, to shells, which typically are more concerned with UNIX features than language design. Our shell is both simple and highly programmable. By exposing many of the internals and adopting constructs from functional programming languages, we have created a shell which supports new paradigms for programmers.
Thorsten Ball - Why threads can't fork
There is an interesting thread on the Go issue tracker about daemonizing processes. Most of the thread is not about daemonizing processes though, but more about why Go has no Fork() function which you can call directly in your code. The first time I read through it I was wondering and saying to myself: “Yeah, why is there no Fork()? It surely can’t be that hard to implement.” After all you can already call system calls with the syscall package. As I read more and more I realized that the problem is not implementing Fork() per se, but rather implementing Fork() to work safely in a multi-threaded environment, which most Go programs are. So I tried to find out why.
Don't Forget To Flush by Andrew Kelley
Getting Started
A smarter, more intuitive, and readable shell. You'll get more done, and more easily, with Murex

Ratatui
Ratatui: Cook up delicious terminal user interfaces in Rust - the fast and lightweight TUI library trusted by developers

About the book | A guide to a-Shell
a-Shell is not only a terminal emulator for iOS/iPadOS, but also an environment with a set of useful libraries, where you can run basic Unix commands and other tricky tools.
nicobailon/pi-interactive-shell
Pi coding agent extension that allows Pi to autonomously control interactive CLIs in an observable overlay. Full PTY emulation, no tmux, token efficient. User can take over anytime.
Terminal UI the Easy Way: BubbleTEA
For the past 18 months I've been tinkering with a terminal application that serves as an Algorand node frontend. I had a number of requireme...

wterm | Terminal Emulator for the Web
A terminal emulator for the web. Renders to the DOM, powered by Zig/WASM.
Running Tangled.sh locally for development... - Wills thoughts
... without having NixOS running on your machine (kinda)
Rethinking the Unix Philosophy: Evolution or Collapse?
Explore the evolution and challenges of the Unix Philosophy in modern software development. Learn its relevance and implications in today's tech landscape.

Gitte
Install Spider on Linux | Flathub
wimpysworld/sidra
Install Buffer on Linux | Flathub
johnfactotum/runemaster
Install Gear Lever on Linux | Flathub