Apparently, the grading is only accepting the results only if thiscommand is run: diff -ur /usr/share/gedit-2/taglist/Latex.tags/home/ql004/gedit-2/taglist/Latex.tagsnot this, which is more common (note the order of switches):diff -ru /usr/share/gedit-2/taglist/Latex.tags/home/ql004/gedit-2/taglist/Latex.tags
*** Bug 122702 has been marked as a duplicate of this bug. ***
The reason this fails is because diff -r always includes the complete command-line used to generate each comparison. Thus the outputs of diff -ur and diff -ru will always be different though never in a significant way. Possible solutions: * Alter the back-end to diff the result of `grep -v ^diff filename` instead of filename (this should not result in any false positives since anything from the actual text of the documents should be preceeded with '+++' or '---'. * Alter the exercise to do a diff -u on two individual files instead of on a directory tree. * Alter the exercise to do a diff -r (without other arguments) on the directory trees. Bowe and I will work on this and update the courseware as nescessary.
Fix is in CVS. The simplest solution was chosen: The exercise now has the student do a recursive diff instead of a unified, recursive diff.
updated script to match text