pipex/Readme.md
2023-03-11 05:06:08 +01:00

1.1 KiB

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