Date: Tue, 26 Mar 1996 06:58:51 +0200 (IST) From: Eli Zaretskii To: j DOT aldrich6 AT genie DOT com Cc: djgpp AT delorie DOT com Subject: Re: Question about 'find' in DOS In-Reply-To: <199603250148.AA209558480@relay1.geis.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 25 Mar 1996 j DOT aldrich6 AT genie DOT com wrote: > I have recently run into an odd problem using the 'find' utility included > with DJGPP. I ran through the info file that came with it and didn't see > anything that might help. The problem is that when find passes the > results of its search to another program via -exec or -ok, it uses Unix > directory separators, not DOS. This causes any DOS program you > invoke with find to work incorrectly. Look at this example, which is The best way to avoid grief is to not call programs which don't understand forward slashes. Don't use DEL, get a port of RM and use it instead. I doubt that this can be easily fixed. But I'll look into this, as I now am working on making the DJGPP port of `find' better. An alternative would be to write a small program that knows about COMMAND.COM's internal commands which will convert the slashes, then call COMMAND with the fixed command line. You can then mention that program as the argument to -exec. Btw, did you install the patches to `find' that I posted a month or so ago? Without that patch, you will see additional problems when you use -exec while recursively processing subdirectories. > As a separate question, has anybody ported xargs to DJGPP yet? I have an almost finished port, but I can't resume working on it before the next week.