Date: Sun, 21 Apr 1996 11:12:53 +0200 (IST) From: Eli Zaretskii To: j DOT aldrich6 AT genie DOT com Cc: djgpp AT delorie DOT com Subject: Re: backslashes for DOS pathna In-Reply-To: <199604210316.AA231146566@relay1.geis.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 21 Apr 1996 j DOT aldrich6 AT genie DOT com wrote: > I had a problem with getting programs like find to interface properly with > dos commands, so I wrote a little program called 'doscmd' that takes a > Unix-style command line and converts it into a DOS command line, > so: > > find \cprogs -name "*.o" -exec doscmd del {} ';' > > would work correctly. Essentially, it just changes all forward slashes to Rejoice! The next version of GNU Find port to DJGPP has special actions -dosexec and -dosok that does this slash conversion automagically, so you just say find \cprogs -name "*.o" -dosexec del {} ; and that's it! (Btw, there is no need to quote the semicolon on MS-DOS.) When DJ has time, he will put the new port on SimTel.