Skip to content

A mini shell similar to bash developed in C | 42 Abu Dhabi project

Notifications You must be signed in to change notification settings

0bada1/minishell-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell-1

This is a project where you create your own shell in C. This project tries to replicate bash. The project has a few parts and was split between 2 people.

  1. Parsing. The first part is reading the command line and storing everything in the appropriate manner to be executed. Parsing includes some error handling such as syntax errors, unclosed quotes, etc.
  2. Execution. This is done after parsing has finished successfully without errors. Every command block must be executed in a child process, unless there is only one command block. Some error handling can be done in execution as well such as handling invalid commands, missing path to environment variables, etc.
  3. Handling signals. This is a small part of the project, but still requires understanding of how signals work. Signals to be handled are Ctrl C, Ctrl D, and ignoring Ctrl "\".

About

A mini shell similar to bash developed in C | 42 Abu Dhabi project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.6%
  • Makefile 4.4%