A small shell based on bash. Written in C as a part of the Hive Helsinki curriculum. A group project by @v-kuu and myself.
Basic features:
- execution
- redirection
- piping
- heredocs
- built-in commands
cd
,echo
,env
,export
&unset
,pwd
and of courseexit
Clone the repository, run make
in the repositorys root. To build you need libreadline-dev
.
If you don't have readline you can install it with sudo apt install libreadline-dev
.
Only Linux is supported, though you might be able to build it on macOS as well.
Simply executing minishell
to use the interactive mode.
$ ./bin/minishell
You can also pipe or redirect commands to it.
$ echo "env > env.txt" | ./bin/minishell
You can do many of the things you could do in Bash, except the things you cant. ;-)