[comp.sources.bugs] Bug in compress 4.1

ilan343@violet.berkeley.edu (Geraldo Veiga) (06/27/91)

I am having a problem with the new version of compress just posted to
comp.sources.misc.

If I try the following:

zcat junk.junk  (a compressed file without .Z)

When I interrupt the execution before completion, "junk.junk" is
deleted.  "zcat" works as expected if the file terminates with a ".Z".

I am running ISC 2.2 (SVR3), and compress was compiled with gcc with the
switches in the distribution Makefile.

weyh@laser.ladwp.UUCP (Darwin C. Weyh) (06/28/91)

ilan343@violet.berkeley.edu (Geraldo Veiga) writes:

>I am having a problem with the new version of compress just posted to
>comp.sources.misc.

>If I try the following:

>zcat junk.junk  (a compressed file without .Z)

>When I interrupt the execution before completion, "junk.junk" is
>deleted.  "zcat" works as expected if the file terminates with a ".Z".

Yeah I had the same problem on Intergraph's CLIX 5.0 unix blend of SYSV and
BSD.
--
============================================================================
Darwin C. Weyh -- Consultant for the Los Angeles Dept of Water and Power
POB 111 Rm 848   Los Angeles,  CA 90012  (213) 580-0822
======================= elroy.jpl.nasa.gov!ladwp!weyh ======================

wjc@hos1cad.ATT.COM (Bill Carpenter) (06/28/91)

ilan343> If I try the following:
ilan343> zcat junk.junk  (a compressed file without .Z)
ilan343> When I interrupt the execution before completion, "junk.junk" is
ilan343> deleted.  "zcat" works as expected if the file terminates with a ".Z".

I've seen this problem before.  I don't know what the fix is, but a
workaround is to do:

	zcat < junk.junk

That is, use redirection on the command line.
-- 
  Bill Carpenter         att!hos1cad!wjc  or  attmail!bill