home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17611 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  2.4 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ariel.ucs.unimelb.EDU.AU!not-for-mail
  2. From: duty@ariel.ucs.unimelb.EDU.AU (Duty Programmer)
  3. Newsgroups: comp.os.linux
  4. Subject: GNU (?) compress (4.0.1) -c bug
  5. Date: 23 Nov 1992 16:39:26 +1100
  6. Organization: Information Technology Services, University of Melbourne
  7. Lines: 39
  8. Sender: rab@tauon.ph.unimelb.EDU.AU
  9. Distribution: world
  10. Message-ID: <1epqqeINN3s7@ariel.ucs.unimelb.EDU.AU>
  11. Reply-To: rab@tauon.ph.unimelb.EDU.AU
  12. NNTP-Posting-Host: ariel.ucs.unimelb.edu.au
  13.  
  14. After installing some new man pages the other day i tried to look at
  15. one using the man-1.1 (?) package, and received the error message
  16. "stdin: not in compressed format". As man has always worked well for
  17. me, i looked into this further and discovered that the problem is that
  18. the version of compress i was using (recently updated from hlu's disks)
  19. has a trivial bug which prevents it from working (as is) with the man
  20. package (as configured).
  21.  
  22. The 'bug' is this: (un)compress has a '-c' switch, which is supposed
  23. to mean "write output on standard output, don't delete original".
  24. When used with compress, '-c' makes compress act like zcat.
  25.  
  26. I have no idea where my old version of compress was from, but it worked
  27. quite happily in this regard, as the man package is configured to run
  28. pilelines of the form:
  29.  
  30.    groff ... /usr/man/man1/blah.1 | compress -c > /usr/man/cat1/blah.1.Z
  31.  
  32. when it produces compressed pre-roff'ed man pages. I ftp'd to prep and
  33. downloaded compress-4.0.1.tar only to find that it was the *same*
  34. compress that hlu had on his bootable rootdisk and that the bug is
  35. there in the source code, viz:
  36. > case 'c':
  37. >    zcat_flg = 1;
  38. The '-c' switch is clearly intended to work when uncompressing (in fact
  39. zcat-ing!), but is broken when compressing. (Actually, it is totally
  40. redundant in this context, since compress will write to stdout when
  41. reading from stdin anyway.)
  42.  
  43. So, although the solution is entirely trivial wrt man (just get rid of the
  44. '-c' option), it appears to be a bug. I'll mail this to the authors, but
  45. i thought i'd mention it here in case other people were bitten by this.
  46.  
  47. rab
  48. ------------------------------------------------------------------------
  49. Richard Brown                     | E-mail: rab@tauon.ph.unimelb.EDU.AU
  50. School of Physics                 | Phone : +61 3 344 5081
  51. University of Melbourne           | Fax   : +61 3 347 4783
  52. Parkville Victoria AUSTRALIA 3052 | Telex : AA35185
  53.