minishell/Readme.md

65 lines
1.3 KiB
Markdown
Raw Normal View History

2023-06-06 16:48:34 +02:00
# Project Name
Minishell is a lightweight implementation of bash
---
## Todo
#### Environment
- Write new CWD to $CWD
- Parse ~/.mshrc
- write return code to $?
#### Prompt
- Rework execution time so it works cross platform, maybe with time?
- Fix on Mac, Total garbage
#### Parser
1. Quotes
2. ;
3. {} () < > << >> <<< | [] ? & && ||
4. * $NAME $(command)
5. prepare commands for execve
#### Exec
1. fork if there are pipes
2. execve all the commands
#### Builtins
- cd
- export
- unset
- alias
- env Test properly
- pwd Test properly
- echo Test properly
- exit Test properly
#### Signals
- ^C should break the readline
- ^\ shouldn't print anything
---
## Bugs
#### crashes when giving proper memory and a lot of arguments
#### Overwrites line when typing past the terminal width at first command
---
## Improvements
#### Handle scripts from stdin or argument
- Functions()
- Statements, if, then, else, elif, while, for
#### Posix Compliant
- //// is the same as / or /////////////////////////////
#### Extra Builtins
- z to jump around
---
## Usage
1. Simply clone or download the repository
2. Run `make` in the cloned directory
3. Start the shell with `./minishell`
---
## Tester
### Todo
- Figure out the best way to test minishell
---
[This project is part of the studies at 42](https://42.fr/en/homepage/)