Simple shell for Unix-like systems written in C
| .gitignore | ||
| LICENSE | ||
| main.c | ||
| README.org | ||
arsh - ARchaic SHell
Simple shell for Unix-like systems written in C, that has a funny name (for germans).
Features
- Can run commands
- You can pipe stdout of one command to stdin of another (ex.
cat main.c | wc --lines) - Variables expansion with
$PATHand${HOME}syntax - Run subcomands with
$(hostname)or`pwd`(works with pipes) cdbuiltin command (cdwithout arguments moves you to$HOME)exitbuiltin commandCTRL+Cstops running command- Custom
readlinefunction - Run scripts with
arsh /path/to/scriptor by putting#!/usr/bin/env arshat the first line of a script and making it executable - Run commands with
arsh -c 'echo $PATH'to launch something quickly witharsh.
Build
To build it, you don't need any external dependencies. Example with gcc:
gcc main.c -O3 -o arsh