Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!tikal!sigma!uw-nsr!uw-warp!gtisqr!stu From: stu@gtisqr.UUCP (Stu Donaldson) Newsgroups: comp.bugs.sys5 Subject: Re: compressdir bug? Summary: compressdir works as is for me. Message-ID: <442@gt-ford.gtisqr.UUCP> Date: 1 Sep 88 22:36:18 GMT References: <303@hawkmoon.MN.ORG> Organization: Global Tech, Mukilteo, WA Lines: 27 In article <303@hawkmoon.MN.ORG>, root@hawkmoon.MN.ORG (Admin) writes: > There is a missing `!' just before the -exec in the find. find $@ -type f -links 1 -exec test -r {} -a -s {} \; \ -exec expr '(' {} : '.*\.Z' ')' '=' 0 \; \ -exec compress $OPTIONS {} \; >/dev/null My copy of compressdir does not have the '!' and works just as I expect it to. The test after the first exec is testing to see if the file is readable, and has a size greater than 0. If you put a '!' in, then things shouldn't work, because it will only try and compress files that either aren't readable, or have a size of 0. Did I misunderstand something? > Derek Terveer root@hawkmoon.MN.ORG > w(612)681-6986 h(612)688-0667 > > "A proper king is crowned" -- Thomas B. Costain -- Stu Donaldson UUCP: uw-beaver!uw-nsr!uw-warp!gtisqr!stu Global Tech Int'l Inc. ARPA: uw-nsr!uw-warp!gtisqr!stu@beaver.cs.washington.edu Mukilteo WA, 98275 Bell: (206) 742-9111 PS, use one of the above return addresses, the From field is probably hosed.