This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygwin_conv_path strange behavior
On Wed, Jun 27, 2012 at 7:59 AM, Jan Nijtmans wrote:
>
> Now, copy cygwin1.dll to the same directory
> as mypath.exe, and do the same
> from a cygwin shell, it prints:
> Â Â$ ./mypath
> Â Âwin32 path: C:\some\path\foo\mypath.exe
> Â Âposix path: /cygdrive/c/some/path/foo/mypath.exe
> From a win32 command shell:
> Â Â> .\mypath
> Â Âwin32 path: C:\some\path\foo\mypath.exe
> Â Âposix path: /foo/mypath.exe
>
This sounds it is as expected. You copied only cygwin1.dll so the
shell you started had a cygwin1.dll in another directory so that / is
mapped to the parent directory containing the cygwin1.dll the shell is
using. However, when you use the win32 command shell there is no
previous mapping of / to the parent directory containing cygwin1.dll
so / is mapped to c:/some/path and the function correctly reports
/foo/mypath.exe.
--
Earnie
-- https://sites.google.com/site/earnieboyd
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple