compressdir bug?
Stu Donaldson
stu at gtisqr.UUCP
Fri Sep 2 08:36:18 AEST 1988
In article <303 at hawkmoon.MN.ORG>, root at 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 at 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 at 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.
More information about the Comp.bugs.sys5
mailing list