Cygwin convert windows path to linux path: Difference between revisions

Jump to navigation Jump to search
m
Line 25: Line 25:
=== troubleshooting ===
=== troubleshooting ===
<pre>
<pre>
enclose the whole path with single quote symbol ex: cygpath -u 'c:\Program Files\' if the path contains spaces
enclose the whole path with single quote symbols ex: cygpath -u 'c:\Program Files\' if the path contains spaces
$ cygpath -u c:\Program Files\
$ cygpath -u c:\Program Files\
met error, press ctrl+c to escape
met error, press ctrl+c to escape


enclose with double quote symbol after cd command ex: cd "$(cygpath -u 'c:\Program Files\')" if the path contains spaces
enclose with double quote symbols after cd command ex: cd "$(cygpath -u 'c:\Program Files\')" if the path contains spaces
$ cd $(cygpath -u 'c:\Program Files\')
$ cd $(cygpath -u 'c:\Program Files\')
-bash: cd: /cygdrive/c/Program: No such file or directory
-bash: cd: /cygdrive/c/Program: No such file or directory

Navigation menu