Unix shells written in C++11, C99 and Rust, as a hobby. These are all quite similar in functionality and mostly work in progresses that I update sporadically.
rsh - Rust implementation
- Runs any program in
/bin
that does not requiresudo
; - Piped commands, currently limited to a single pipe.
- Save the output of simple and piped commands to a file with
>
.- e.g.
ls -li | tr s x > output
- e.g.
- Signal handler;
- Implements
cd
; - Unwinds before exit, interrupted or not;
- Prompt similar to
bash
's default.
minishell-2 - C++11 implementation
- Runs any program in
/bin
that does not requiresudo
; - Piped commands, (10 pipes maximum, but that can be easily increased within the code)
- Signal handler;
- Implements
cd
; - Unwinds before exit, interrupted or not;
- Prompt similar to
bash
's default.
minishell - C99 implementation
Unix shell I made a loooong time ago as an university assignment. This is honestly not good and a new one in ANSI C is in the works.
Features:
- Simple commands, such as "ls", "ls -li", "clear", "help", etc;
- Piped commands, such as "ls -li | tr s x". Commands with more than two pipelines are also supported;
- Saving to file, such as "ls -li > file_list";
- Reading from file, such as "sort < file_list".