git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Possibility of a MinGW version?

From
David Brown <git@davidb.org>
Date
Dec 24, 2005, 16:40 UTC
Message-ID
<20051224164011.GA6737@old.davidb.org>
In-Reply-To
<43AD21D7.5060306@op5.se>
On Sat, Dec 24, 2005 at 11:24:23AM +0100, Andreas Ericsson wrote:
Show 14 quoted lines
> Sven Verdoolaege wrote:
> >On Sat, Dec 24, 2005 at 11:09:39AM +0100, Andreas Ericsson wrote:
> >
> >>The worst trouble you're likely to run into is all the hardcoded paths. 
> >>They are everywhere and ofcourse use the / for path entity separation.
> >
> >
> >AFAIR, '/' is a valid path separator on Windows.
> >It's just command.com (does that still exist?) that insisted on '\\'
> >separators.
> 
> Are you sure? I've seen lots of porting patches that transliterate those 
> to '\\'. Perhaps those who wrote those patches just took for granted 
> that it was needed, the same as I did.

AFAIK all of the Win32 APIs accept either forward or backward slash as a separator. It has been this way since when they added directories to DOS.

What doesn't always accept forward slashes are commandline utilities that are using '/' as an option separator. Most of them these days will accept the '/', at least in many circumstances.

Dave
Previous: Johannes SchindelinNext: Rob McDonald
Message 6 of 16 in “Possibility of a MinGW version?”
  1. Rob McDonaldDec 24, 2005
  2. Andreas EricssonDec 24, 2005
  3. Sven VerdoolaegeDec 24, 2005
  4. Andreas EricssonDec 24, 2005
  5. Johannes SchindelinDec 24, 2005
  6. David BrownDec 24, 2005
  7. Rob McDonaldDec 24, 2005
  8. Johannes SchindelinDec 24, 2005
  9. Rob McDonaldDec 25, 2005
  10. Christopher FaylorDec 31, 2005
  11. H. Peter AnvinDec 31, 2005
  12. Christopher FaylorJan 1, 2006
  13. Christopher FaylorDec 31, 2005
  14. Junio C HamanoDec 24, 2005
  15. Andreas EricssonDec 24, 2005
  16. Junio C HamanoDec 25, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.