Skip to content

NHariman/minishell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

491 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codam Coding College Project: minishell

Project description:
A simplified shell program that follows the rules of bash.

In collaboration with YUSHUA@github

Functionalities:
- Shows a prompt when waiting for a new command
- Search and launch the right executable (based on the PATH variable or the relative or absolute path), like in bash.
- Shell built-ins:
    - echo with option '-n'
    - cd with only a relative or absolute path
    - pwd without any options
    - export without any options
    - unset without any options
    - env without any options and any arguments
    - exit without any options.
- ; in the command should separate commands like in bash
- ' and " should work like in bash except for multiline commands.
- Redirections > >> < works like in bash except for file descriptor aggregation.
- Pipes | work like in bash
- environment variables ($ followed by characters) work like in bash
- $? works like in bash
- ctrl-C, ctrl-D, ctrl-\ have the same results as in bash.

Using the project

Clone the project with git clone:
git clone [repo_link] [folder_name]

Create the executable:
make

Run the executable:
./minishell

A prompt will show up that will allow you to use minishell as your current g_shell.

About

A simplified shell program that follows the rules of bash capable of executing prompts, piping prompts and redirecting input

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors