X-Spam-Check-By: sourceware.org
Date: Tue, 22 Nov 2005 16:03:58 -0500
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Where is cygwin bin directory?
Message-ID: <20051122210358.GC27219@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
References: <20051122183415.GB23653@trixie.casa.cgf.cx> <JAEBIEIILHAGMJNFODIEIEOGCBAA._garbage_collector_@telia.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <JAEBIEIILHAGMJNFODIEIEOGCBAA._garbage_collector_@telia.com>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, Nov 22, 2005 at 09:58:18PM +0100, Hannu E K Nevalainen wrote:
>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"
>
>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

Referrring to the cygwin /bin directory as /cygdrive/w/cygwin/bin serves
no purpose.

To the OP - just use whatever cygpath options make sense.  It's not that
hard and it certainly doesn't require anything like the gobbledegook
above.

Or, if you just are just curious about what /bin translates to, use mount.

cgf

--
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/

