Skip to content

Latest commit

 

History

History
23 lines (12 loc) · 736 Bytes

File metadata and controls

23 lines (12 loc) · 736 Bytes

msh - Mini Shell

Description

A small toy shell inspired by Bash that I built purely for learning purposes so I could get a better idea of how a shell actually works. It has very basic functionality, only implementing two simple built-in commands cd and history. Most programs can be run through fork() and execvp(), which is roughly how Bash handles external commands as far as I understand.

Build

I don't use any external librarys as this was a goal i set out, I use pretty much all standard C/POSIX.

You just need gcc or clang.

To compile, just run the following at the root of the project:

make

To install you can run the following which will attempt to install under usr/local/bin:

make install