From owner-freebsd-questions Wed Aug 7 07:20:29 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA25796 for questions-outgoing; Wed, 7 Aug 1996 07:20:29 -0700 (PDT) Received: from eac.iafrica.com (196-7-192-187.iafrica.com [196.7.192.187]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA25767 for ; Wed, 7 Aug 1996 07:20:12 -0700 (PDT) Received: (from rnordier@localhost) by eac.iafrica.com (8.6.12/8.6.12) id QAA00355; Wed, 7 Aug 1996 16:16:26 +0200 From: Robert Nordier Message-Id: <199608071416.QAA00355@eac.iafrica.com> Subject: Re: perhaps i am just stupid. To: dgy@rtd.com (Don Yuniskis) Date: Wed, 7 Aug 1996 16:16:24 +0200 (SAT) Cc: tcg@ime.net, dgy@rtd.com, fqueries@jraynard.demon.co.uk, questions@FreeBSD.ORG In-Reply-To: <199608071139.EAA17578@seagull.rtd.com> from "Don Yuniskis" at Aug 7, 96 04:39:13 am X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Don Yuniskis wrote: > It seems that Gary Chrysler said: > [...] > > cksum %1.?? > %1.tmp > > comp %1.sum %1.tmp > > > > I belive this is what you meant. (That is if all the binarys have a > > two digit extension) > > But, it will hose you if foo.xx exists, etc. > > > cksum %1.* > %1.tmp > > Would cause the .tmp and .sum to be cksum'ed. > > > > cksum %1.0* > %1.tmp > > Whats the ^.. for?? A "cksum %1.0*" won't work because the files have alpha extensions: "bin.aa" to "bin.cq", if memory serves. However there seems to be another underlying assumption: that MS-DOS expands wildcards in alpha-sorted sequence. It doesn't. File "bin.bz" (say) may just as well be processed before "bin.aa". So a "comp" without an intervening "sort" won't work. Another complication: DOS "sort" is little-used, broken, and may not be in the PATH. -- Robert Nordier