Michael Pare
Tommy Shiels
Ryan Ulep
This program acts as a command shell and performs the following:
- Prints a command prompt.
- The programs run until exit is read in on the command line.
- The rshell can handle precedence operators,
(echo A && echo B) || (echo C && echo D)
. - The rshell can execute test operations in either of the following formats:
test -e Makefile
and[ -e Makefile ]
. - Reads in a command on one line. These commands take the form:
cmd = executable [argumentList] [connector cmd]
connector = || or && or ;
Note this program can take more than one command on a line and can be separated by connectors. There are no limits to the number of commands which can be chained together, and any combination of operators can be handled.
- The following command structure causes an error:
[some test] connector (a precedence)
. - when entering a invalid directory as an argument several times for cd it will interfere with the PWD and OLDPWD variables