delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/22/16:21:04

From: boukanov AT fi DOT uib DOT no (Igor boukanov)
Subject: cygpath does not resolve symlinks?
22 Nov 1998 16:21:04 -0800 :
Message-ID: <19981122191327.18441.qmail.cygnus.gnu-win32@findmail.com>
To: gnu-win32 AT cygnus DOT com
Cc: igor DOT boukanov AT fi DOT uib DOT no

I have just found that cygpath utility does not resolve symlinks. I.e. it just adjusts slashes and insert drive letters to the path. 
If I type:
cygpath -w /d/a.txt
it prints
C:\d\a.txt
and not 
D:\a.txt

even if /d linked or mounted on //d

This is just annoying and prevents me to put a perfect replacement for windows start command
in my .bashrc
start() { cmd /C start /i `cygpath -w $1` ; }

So the questing is:
How can I convert from a shell script a cygwin path tp a real windows one?

With best regarsd, Igor Boukanov
Igor DOT Boukanov AT fi DOT uib DOT no
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019