[m-dev.] cvspatch

Zoltan Somogyi zs at cs.mu.OZ.AU
Thu Nov 11 11:25:40 AEDT 1999


> Good script. If you submitted it as the answer to a 252 prac exam
> question it wouldn't get full marks though. You create a temporary file
> but don't use trap to make sure it doesn't get left behind... :-)

Actually, in this case, if the script is interrupted, you probably *want*
the patch file for the directory being processed to be left behind.

The bigger problem with the script is that the code for processing a directory
had to be duplicated. Unfortunately, the appropriate design technique (taught
in 244 and now in 254) does not work, because in sh there is no way to put
a line back into the input stream, and thus there is no way to implement
lookahead.

Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list