This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Where is cygwin bin directory?


cgf wrote:
> On Tue, Nov 22, 2005 at 07:20:26PM +0100, Lennart Borgman wrote:
>> Is the path to Cygwin bin directory available in windows registry?
>> 
>> It would be nice if it were there since that would make it easier to
>> use Cygwin from other programs.
> 
> "man cygpath"
> "man mount"
> 
> cgf

Deciphered:

- Windows style path
$ cygpath -aw /bin

Output, e.g: W:\cygwin\bin

- Cygwin style path
$ echo "$(cygpath -am /bin)" | \
sed -re 's/^(..)(.*)$/\1;\2;-/' | \
(IFS=";" read drive path garbage; \
echo "$(cygpath -au "$drive")$path" )

Output, e.g: /cygdrive/w/cygwin/bin


-- 
H

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]