Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (20 loc) · 773 Bytes

README.adoc

File metadata and controls

30 lines (20 loc) · 773 Bytes

Zigish - Zig Interactive Shell

MOVED! Hello, I am moving my repos to http://ratfactor.com/repos/ and setting them to read-only ("archived") on GitHub. Thank you, -Dave

I am a real shell!…​ish

This is a minimalist toy Unix shell written in Zig.

*** Hello, I am a real shell! ***
> ls
README.adoc  build.zig  src  zig-cache
> date
Sat Jun  5 13:26:59 EDT 2021
> foo
ERROR: error.FileNotFound
>

It has almost no error checking and is otherwise unsuitable for "real work" and it never will.

I started with this tutorial: Write a Shell in C.

The comments explain it pretty well. But check out my article, Forking is Cool for the whole story.

Enjoy! :-)