Project 3: File Redirection in the Shell

Due Thursday, May 14, by 9:00 AM (Start of the Final Exam)

In class, we've been writing a shell, but so far have avoided adding file redirection! This prevents use of commands like this:
grep tiger * 2> /dev/null
Or this:
date >> date_log
Or this:
bc < math_problem
For the class shell, add support for 5 redirection operators:
>  >>  2>  2>>  <
For the append vs. replace, you will have to specify different file opening flags (read about O_APPEND in the manual page for open(2) ). The behaviour should be the same as it is in bash (the default shell on isoptera).

Upload your completed project in the usual manner.