getnextline | ||
libft | ||
src | ||
.gitignore | ||
en.subject.pdf | ||
LICENSE | ||
Makefile | ||
pipex.h | ||
Readme.md | ||
test.sh |
Pipex
Pipex is a simple program that simulates pipes
Improvements
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
Bugs
without $PATH commands should return No such file or directory instead of command not found
Usage
- Simply clone or download the repository
- Run
make
in the cloned directory - Start the program with
./pipex
and follow the instructions
Tester
Todo
- add valgrind to tester
- check for -Wall -Werror -Wextra
- find a program that returns 2 with invalid options
- add here_doc with "EOF " in some way
- ./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
Usage
- Download test.sh to your pipex directory
- Make the file executable
chmod +x test.sh
- Run
./test.sh
to start the test