Skip to content

ombhd/minishell_42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minishell_42

Contributors

  • Omar BOUYKOURNE   @su-omb   : 42login => obouykou
  • Yassin SLATI                 @sltyassin  : 42login => yslati

Subject

minishell_subject

How to use?

  1. make
  2. ./minishell
  3. Run your commands

Simple shell that behaves like bash and contains these commands built-in :

  1. echo with option -n.
  2. cd with only a relative or absolute path.
  3. pwd without any options.
  4. export without any options.
  5. unset without any options.
  6. env without any options and any arguments.
  7. exit without any options.

and works with these delimiters :

  • Semicolon ; in the command separates commands like in bash.
  • Single quotes ' and double quotes " work like in bash except for multiline commands.
  • Redirections < > >> work like in bash except for file descriptor aggregation.
  • Pipes | work like in bash.
  • Backslash \ works like in bash.
  • Environment variables ($ followed by characters) work like in bash.
  • $? works like in bash.
  • ctrl-C, ctrl-D and ctrl-\ have the same result as in bash.

Some Sources :

NB:

  • Please, if you have other useful sources, you can post them in an issue here in GitHub, thanks in advance.
  • Maybe you will find some special cases that doesn't work, please post an issue if there are any.

About

Simple shell that behaves like bash

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published