🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #836

compressdir bug?

#836
From: Admin
Date: Mon, 29 Aug 1988 18:02
36 lines
1689 bytes
I don't know why i haven't ever seen anyone complain about this little bug (?),
but i suspect that it is because no one ever uses the auxilliary utility called
compressdir that came with the compress 4.0 distribution.

The problem is that compressdir, upon invokation, never finds any files to
compress.  Here is the patch to correct the problem:

There is a missing `!' just before the -exec in the find.

Maybe only my copy of compressdir was corrupted -- either that or i simply
don't know how to use the program...  But it seems to work for me now.
Hope this helps someone out there.

---------------------cut me here-----------------------------------------------
*** compressdir.org	Mon Aug 29 12:57:58 1988
--- compressdir.new	Fri Aug 26 19:47:42 1988
***************
*** 11,16 ****
  	FILES="."
  fi
  set $FILES
! find $@ -type f -links 1 -exec test -r {} -a -s {} \; \
  -exec expr '(' {} : '.*\.Z' ')' '=' 0 \; \
  -exec compress $OPTIONS {} \; #>/dev/null
--- 11,16 ----
  	FILES="."
  fi
  set $FILES
! find $@ -type f -links 1 ! -exec test -r {} -a -s {} \; \
  -exec expr '(' {} : '.*\.Z' ')' '=' 0 \; \
  -exec compress $OPTIONS {} \; #>/dev/null
-- 
Derek Terveer		root@hawkmoon.MN.ORG
			w(612)681-6986	h(612)688-0667

"A proper king is crowned" -- Thomas B. Costain
Technical Details
Message-ID: <303@hawkmoon.MN.ORG>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!amdahl!ems!pwcs!elric!hawkmoon!root

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!amdahl!ems!pwcs!elric!hawkmoon!root
From: root@hawkmoon.MN.ORG (Admin)
Newsgroups: comp.bugs.sys5
Subject: compressdir bug?
Keywords: compressdir, compress 4.0
Message-ID: <303@hawkmoon.MN.ORG>
Date: 29 Aug 88 18:02:53 GMT
Organization: One of the Eternal Champions - Richfield, MN, 554232523, USA
Lines: 35