Go to file
2023-03-11 05:06:08 +01:00
getnextline libupdate 2023-03-07 05:24:59 +01:00
libft libupdate 2023-03-07 05:24:59 +01:00
src firstcommit 2023-03-01 04:36:24 +01:00
.gitignore update 2023-03-01 17:58:49 +01:00
en.subject.pdf firstcommit 2023-03-01 04:36:24 +01:00
LICENSE firstcommit 2023-03-01 04:36:24 +01:00
Makefile firstcommit 2023-03-01 04:36:24 +01:00
pipex.h firstcommit 2023-03-01 04:36:24 +01:00
Readme.md readmeupdate 2023-03-11 05:06:08 +01:00
test.sh shfix 2023-03-01 17:11:13 +01:00

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

  1. Simply clone or download the repository
  2. Run make in the cloned directory
  3. 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

  1. Download test.sh to your pipex directory
  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