There is an additional update available. This update provides an additional trace file (trace21.txt). Correctly passing this trace file is worth 5 extra credit points. You are strongly encouraged to get test21 working with your shell as it checks for errors that the initial 20 traces missed (so in theory, if your shell is correctly coded, no additional work will be necessary).
To get the update, from within your 213hw/L5 directory run:
tar xvf /afs/cs/academic/class/15213-s03/labs/L5/update2.tarThis will not overwrite any of your work unless you've made changes to the Makefile.
There is an update in the /afs/cs/academic/class/15213-s03/labs/L5 directory. See below for installation instructions.
NOTE: If you hadn't downloaded the provided code before 5:00pm on 3/12/03 then you won't need to do the update.
NOTE: This won't overwrite your tsh.c file (you'll need to manually merge the changes in yourself), so your work should be unaffected.
You can also download the update from here.
Everyone who has already started on the lab MUST do this update. If you haven't started on it yet, its all fixed in the shlab-handout.tar file currently up there (i.e. you don't have to worry about doing the update). Also, if you haven't started yet, you should ;-).
In the /afs/cs/academic/course/15213-s03/labs/L5 directory there is now an update.tar file. This file contains the final four trace files, and updated versions of the first 16. It also contains a new tshref which fixes a bug in the I/O redirection code (try doing tsh> ls -al>ls.out) in your old tshref - it won't work properly). The bug only affects the I/O redirection part of the lab, and in the update.c file there is a new implementation of parseline to fix the problem, and firstTok (which is used by the new parseline). Finally, there is a new Makefile and a new README in the tarball. To start using the new files, copy update.tar to your working directory, run "tar xvf update.tar" and then remove the old parseline code from tsh.c and copy the new parseline code from update.c in. Also be sure to add the prototype for firstTok at the top of the file and the implementation somewhere in the file (probalby right below parseline).
Summary:
Step 1: Copy update.tar from the L5 directory to your working directory
Step 2: tar xvf update.tar
Step 3: Manually insert the new parseline code and firstTok code in tsh.c
Step 4: Finish the lab by next Thursday at 11:59