A minimal Unix shell project written in C.
MiniShell is a simplified shell that imitates the behavior of a Bash shell. It can search and launch executables based on the PATH variable or using a relative or absolute path. The shell also includes handling of environment variables, redirections, pipes, and a few built-in commands.
- Maintain a working history of commands.
- Support for relative and absolute path execution.
- Redirections: <, >, <<, >>
- Pipes using |
- Environment variables
- Special $? variable for the exit status of the most recently executed foreground pipeline.
- Interactive mode:
- ctrl-C: displays a new prompt on a new line
- ctrl-D: exits the shell
- Built-in commands:
- echo with option -n
- cd with only a relative or absolute path
- pwd
- export
- unset
- env
- exit
- Clone this repository:
git clone https://github.com/<your-username>/minishell.git - Enter the repository:
cd minishell - Compile the project:
make all - Run the shell:
./minishell
./minishellMiniShell is MIT licensed.
If you want to contact me you can reach me at spoliart@student.42.fr.