Background:
See the C program
http://homepage.cs.uiowa.edu/~dwjones/opsys/hw/mp1.txt
also available as
~dwjones/.public-html/opsys/hw/mp1.txt from within the departmental
linux cluster.
This program is a Unix shell. Excepting a host of missing features, it is
fully functional. You can launch it, use it as a shell to do things like
editing, compiling and running programs. This works, even to the point of
using it to continue development of itself
Of course, this shell is missing a host of features. For this assignment,
your job is to add some of those features.
The Assignment:
-
Make a copy of this program, and rename the source file mp1.c since
it is a C source file.
-
Change the program heading to add your own name to the list of authors,
as someone who modified the program. The date you give should be the date
you made your last change prior to submission.
-
Note that one deficiency of this little shell is that it doesn't permit
blanks in program arguments. In the standard Unix shells, an argument
enclosed in single quotes may contain blanks, so where
hello\nbsp;world is seen as two arguments separated by
quotes, 'hello\nbsp;world' is one argument containing a blank.
The quote marks themselves are not part of the argument.
Fix getargs so that it supports single-quoted arguments.
-
Fix the header comments documenting the syntax of the command language
so that it correctly reflects your work.
-
Submit your tested work using the
icon
submit mechanism.