Skip to content

Latest commit

 

History

History
52 lines (38 loc) · 2.28 KB

README.md

File metadata and controls

52 lines (38 loc) · 2.28 KB

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.