duane@anasazi.UUCP (Duane Morse) (06/14/85)
Regarding the recently-posted unshar.c, I've discovered two bugs having to do with eliminating shell comment lines when the program is compiled with V7 defined. The intention of unshar with V7 defined is to toss shell comment lines which begin with a '#' since early versions of sh don't recognize this is a comment character. Bug 1 is easy to fix. If the first line of a shar file is a shell comment, unshar deletes the following comment lines but retains the initial one. Bug 2 is a killer. unshar doesn't attempt to handle shell comments that appear to the right of shell commands. (For example, the recently-posted shar.c puts comments at the end of "fi" marks.) We've used unshar compiled without V7 defined and haven't run into any problems there, so the above caveats shouldn't affect many users. Duane Morse -- Duane Morse ...!noao!terak!anasazi!duane (602) 275-0302