compressdir bug?

Admin root at hawkmoon.MN.ORG
Tue Aug 30 04:02:53 AEST 1988


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 at hawkmoon.MN.ORG
			w(612)681-6986	h(612)688-0667

"A proper king is crowned" -- Thomas B. Costain



More information about the Comp.bugs.sys5 mailing list