delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/22/15:56:55

X-Spam-Check-By: sourceware.org
From: "Hannu E K Nevalainen" <_garbage_collector_ AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Where is cygwin bin directory?
Date: Tue, 22 Nov 2005 21:58:18 +0100
Message-ID: <JAEBIEIILHAGMJNFODIEIEOGCBAA._garbage_collector_@telia.com>
MIME-Version: 1.0
In-Reply-To: <20051122183415.GB23653@trixie.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


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