A light implementation of a shell written in C.
Since its purpose is demonstration (not feature completeness or even fitness for casual use), it has many limitations, including:
- Commands must be on a single line;
- Arguments must be separated by a whitespace;
- No quoting arguments or escaping whitespace;
- No piping nor redirection;
- Only builtins are:
cd
,help
,exit
.
You can either build with make
or download the latest artifact in the actions.
If you downloaded the artifact you first need to extract the lsh
file from the zip, then you can just run it (make sure it's executable).
./lsh
This project is under the MIT License.