Convert a file or path value to Cygwin form. The substitutions made are
x: => /cygdrive/x
X: => /cygdrive/x (converts X to lower case)
\ => /
; => :
(space) => \(space)
These substitutions will leave unchanged a cygwin-style pathname.
Note: tocyg
will usually NOT work by typing in the string
because backslashes are interpreted as quoting the next character
and because spaces break up the argument. Tocyg has been known to work within
a Makefile if
- the entire string is in quotes
- backslashes are doubled
Example input
tocyg 'c:\\foo\\goo hee;f:\\gee whiz'
corresponding output:
/cygdrive/c/foo/goo\ hee:/cygdrive/f/gee\ \ whiz