/minishell

The goal of this project is to create a simple shell. Will be your own little bash or zsh. You are going to learn a lot about processes and file descriptors.

Primary LanguageC

minishell

42Project Score

Index ๐Ÿ“‹

You're sections headers will be used to reference location of destination.


Description

The goal of this project is to create a simple shell. Will be your own little bash or zsh. You are going to learn a lot about processes and file descriptors.


Scheme

Scheme

Back To The Top


Developed commands

- Find and launch the appropriate executable.
- Builtins:
    - echo (-n flag included)
    - cd (with absolute and relative path)
    - pwd
    - export
    - unset
    - env
    - exit
- ; will have to separate the commands on the command line.
- Redirects >, โ€œ>>โ€ y < should work as in bash, except in fd aggregations.
- Environment variables ($ followed by characters) should work like in bash.
- Pipes | should work like in bash.
- $? it should work like in bash.
- ctrl-C, ctrl-D y ctrl-\ should show the same result as in the bash.

Back To The Top


Allowed Functions

Back To The Top


How To Use

Deployment

git clone https://github.com/j53rran0/minishell.git
make && ./minishell

References

Functions

Back To The Top


License

MIT License

Copyright [2020] [Paris Martรญnez Ruiz] [Jaime Serrano Gonzรกlez]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back To The Top


Author Info

Paris

Jaime

Back To The Top