Tiny self written shell for educational purposes

Klemens Nanni 0710d6fd28 Simplify readline() logic, fix negative exit values 5 years ago
.gitignore f596d704da Add .gitignore 5 years ago
LICENSE 3630bf45a5 Initial commit 5 years ago
Makefile 36e8a12ea6 Do not keep system's CFLAGS 5 years ago
README.md 2da5ed30b4 Update README, use portable Makefile 5 years ago
sh.c 0710d6fd28 Simplify readline() logic, fix negative exit values 5 years ago
sh.h 0710d6fd28 Simplify readline() logic, fix negative exit values 5 years ago

README.md

sh

sh is a tiny barely functional shell developed for educational purposes.

The code is being developed on OpenBSD but should work on all major POSIX compliant platforms.

Motivation

Starting out as an exercise at uni sh quickly became more of a fun project.

Bugs

Making mistakes is one goal of this project, get used to gdb(1) and prepare for lots of debugging/fixing hours (hopefully):

$ gdb -se sh -c sh.core