Skip to content

Minishell is a project developed by students at 42 school, which aims to create a simple shell program similar to the Unix command-line interpreter (shell).

Notifications You must be signed in to change notification settings

AndreGomesSilva/Minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minishell

minishellm

Description

Minishell is a project developed by students at 42 school, which aims to create a simple shell program similar to the Unix command-line interpreter (shell). The project focuses on implementing various features and functionalities commonly found in a shell, such as executing commands, managing processes, handling signals, and implementing built-in shell commands.

Features

  • Command execution: Minishell allows users to execute commands by typing them into the shell prompt. It supports executing both built-in shell commands and external commands available in the system.

  • Environment variables: Users can set and manipulate environment variables within the shell. Minishell provides functionality to manage and use environment variables effectively.

  • Redirection and piping: Minishell supports input/output redirection and command piping, allowing users to redirect input or output from/to files and chain multiple commands together.

  • Signal handling: The shell handles various signals, such as SIGINT (interrupt signal) and SIGQUIT (quit signal), providing a smooth user experience.

  • Error handling: Minishell provides informative error messages and handles errors gracefully to ensure a robust and user-friendly shell experience.

minishell.webm

Build and Run

To build Minishell, follow these steps after cloning the repository:

  1. Clone the GitHub repository using the command git clone https://github.com/AndreGomesSilva/Minishell.git.
  2. Navigate to the root directory of the project.
  3. Run the make command to compile the Minishell program.
  4. After successful compilation, you can start Minishell by running the ./minishell command in the terminal.

Tests

1- Creates the image in docker, it must be run only once: docker build -t gtest .

2- Create container: docker run -v .:/minishell -it gtest

3- Execute the tests: make runTests

This project was developed by AndreGomesSilva and RenanBatista. You can find their work on GitHub.

About

Minishell is a project developed by students at 42 school, which aims to create a simple shell program similar to the Unix command-line interpreter (shell).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published