pipex/Readme.md

40 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-03-11 05:04:57 +01:00
# Pipex
Pipex is a simple program that simulates pipes
2023-03-11 04:21:59 +01:00
---
## Improvements
2023-03-11 05:04:57 +01:00
#### Handle quotes properly
should be no problem adding an extra step to the parsing
#### Keep using the same file descriptors
This would not make the program run out of fds
2023-03-11 04:21:59 +01:00
---
## Bugs
2023-03-11 05:04:57 +01:00
without $PATH commands should return No such file or directory instead of command not found
2023-03-11 04:21:59 +01:00
---
## Usage
1. Simply clone or download the repository
2. Run `make` in the cloned directory
2023-03-11 05:06:08 +01:00
3. Start the program with `./pipex` and follow the instructions
2023-03-11 04:21:59 +01:00
---
## Tester
2023-03-11 05:04:57 +01:00
#### Todo
2023-03-11 04:21:59 +01:00
- add valgrind to tester
- check for -Wall -Werror -Wextra
2023-03-11 05:04:57 +01:00
- find a program that returns 2 with invalid options
- add here_doc with "EOF " in some way
2023-03-21 20:14:37 +01:00
- I expect 1 somewhere should be 127
2023-03-11 05:04:57 +01:00
- ./pipex input "echo "'"hallo"'"" cat output
- ./pipex input "printf h'hal""lo hallo'h" cat output
- ./pipex input "awk '{print$1}' input" cat output
- ./pipex input "awk '{ print$1 }' input" cat output
2023-03-11 04:21:59 +01:00
#### Usage
2023-03-11 05:04:57 +01:00
1. Download test.sh to your pipex directory
2023-03-11 04:21:59 +01:00
2. Make the file executable `chmod +x test.sh`
3. Run `./test.sh` to start the test
---
[This project is part of the studies at 42](https://42.fr/en/homepage/)