From: j DOT aldrich6 AT genie DOT com Message-Id: <199604210316.AA231146566@relay1.geis.com> Date: Sun, 21 Apr 96 02:58:00 UTC 0000 To: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Subject: Re: backslashes for DOS pathna Reply to message 8098694 from ELIZ AT IS DOT ELTA. on 04/18/96 8:12AM >The DJGPP port of GNU Make can use both forward and backward slashes. If >you use the DOS-style backslashes, you should use them in pairs, because >it is also an escape character. Also, you should know that the file- and >directory-oriented functions built into GNU Make don't know about >backslashes; if you need both, you need to convert the slashes with >$(subst) function first. > >If you work with DJGPP programs, you can just use Unix-style slashes all >the way. 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 backslashes, and all dashes to forward slashes (to simulate the fact that most DOS programs use /* for parameters.) The program isn't real fancy, but if anybody would like me to upload it, send me email. John