Path: utzoo!attcan!lsuc!ncrcan!hcr!edwin From: edwin@hcr.UUCP (Edwin Hoogerbeets) Newsgroups: comp.sys.amiga Subject: Find 1.2 (praise and small bug report) Keywords: glory hallelujah, I can do find again! Message-ID: <26@hcr.UUCP> Date: 23 Mar 89 06:50:16 GMT Reply-To: edwin@hcrvax.UUCP (Edwin Hoogerbeets) Organization: HCR Corporation, Toronto Lines: 36 A short while ago, Rodney Lewis (munnari!bhpese.oz.au!rodney) posted a Unix-like find to comp.sources.amiga. I would like to say that I *like* it! On the harddisk, I would be lost without it. Literally. (8-) Unfortunately, the first thing I tried was: find dh0:bin -name "*z*" -print which should find zoo and fiz and rez and z. whoops. I looked through the code and easily found this: [etc] case NAME: if (compare_ok(prim->data[0], name)) return(1); else return(0); [etc] When the if is changed to: if (compare_ok(&prim->data[0], name)) It works fine. (works find? sorry, couldn't resist) Other than that, good work! Keep those little utils coming. (I'm almost finished a mv that will move directories across devices, preserve permissions, dates, filenotes, etc. I will send it in when it stops guruing. :-) Edwin