Go to file
djonker 8046561c71 updated headers 2023-10-26 18:58:33 +02:00
getnextline updated headers 2023-10-26 18:58:33 +02:00
libft updated libft 2023-10-26 18:33:37 +02:00
src updated headers 2023-10-26 18:58:33 +02:00
.gitignore update 2023-03-01 17:58:49 +01:00
LICENSE firstcommit 2023-03-01 04:36:24 +01:00
Makefile updated libft 2023-10-26 18:33:37 +02:00
Readme.md readmeupdate 2023-03-21 20:14:37 +01:00
en.subject.pdf firstcommit 2023-03-01 04:36:24 +01:00
pipex.h updated headers 2023-10-26 18:58:33 +02:00
test.sh shfix 2023-03-01 17:11:13 +01:00

Readme.md

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
  • I expect 1 somewhere should be 127
  • ./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