From owner-freebsd-questions Wed Aug 7 22:47:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA11788 for questions-outgoing; Wed, 7 Aug 1996 22:47:09 -0700 (PDT) Received: from ime.net (ime.net [204.97.248.4]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA11783 for ; Wed, 7 Aug 1996 22:47:07 -0700 (PDT) Received: from kimiko.tcguy.net (buxton-4.ime.net [206.231.148.133]) by ime.net (8.7.4/8.6.12) with SMTP id BAA23320; Thu, 8 Aug 1996 01:43:51 -0400 (EDT) Message-ID: <32097EAC.2171@ime.net> Date: Thu, 08 Aug 1996 01:44:12 -0400 From: Gary Chrysler Reply-To: tcg@ime.net Organization: The Computer Guy X-Mailer: Mozilla 3.0b6 (Win95; I) MIME-Version: 1.0 To: Robert Nordier CC: dgy@rtd.com, questions@freebsd.org Subject: Re: perhaps i am just stupid. References: <199608072009.WAA01015@eac.iafrica.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Robert Nordier wrote: > > Gary Chrysler wrote: > > > > > > Another complication: DOS "sort" is little-used, broken, and may > > > > > not be in the PATH. > > > > > > > > I see no need for that ... ... :) > > > > I reley on sort as much as I reley on find. (ms-dos's) > > > > > > DOS sort is evil and DOS find is more evil. :) > > > > > > On UNIX/BSD, assuming /usr/bin/sort and /usr/bin/fgrep is reasonable. > > > I think corresponding DOS assumptions are much riskier. > > > > Like I said, I see no reason to sort it anyways. > > > > Yes, dos find and sort are brain dead! > > Misinterpreted your DOS sort/find comment: apologies. > > However, unless some sorting takes place, the files may end up > being processed out of order. This may not be a likely problem, > but it is a sufficiently possible one to need taking into account. > > I actually had to do a DOS cksum-like clone, years ago, and for > compatibility it was necessary to sort the file args during the > globbing. Unfortunately this is something ports from UNIX frequently > don't take into account. Thats one of the several reasons I belive the path should be to have the dos verify_checksum program read the checksum.sum and work from it! This would side step alot of dos's brain deadness! The only maintiance would be if the output of FreeBSD's cksum changed. Not likly. fhandle = fopen("checksum.sum", ...) while(fgets(buf, len, fhandle) != EOF) { parse(buf); crc = do_crc(findfile(buf_filename)); if (crc == valid_crc) it's ok else it's broke download it again! } -Enjoy Gary ~~~~~~~~~~~~~~~~ Improve America's Knowledge... Share yours The Borg... Where minds meet (207) 929-3848