andyhurd / c_shell

0 stars 0 forks source link

A command, with or without arguments, whose output is piped to the input of another command. #9

Closed andyhurd closed 12 years ago

andyhurd commented 12 years ago

Example: ls -l | more Details: This takes the output of the first command and makes it the input to the second command. Concepts: Pipes, synchronous operation System calls: pipe() Note: You must check and correctly handle all return values. This means that you need to read the man pages for each function to figure out what the possible return values are, what errors they indicate, and what you must do when you get that error.

Mehrinlm commented 12 years ago

Fixed but there is still a bug with the prompt being printed too soon. ALSO since we redirect standard out, all the debug statements screw it up because they all print to standard out. SO DEBUGGING MUST BE TURNED OFF!