delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/15/11:37:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: localhost.localdomain: ronald set sender to blytkerchan AT users DOT sourceforge DOT net using -f
Date: Mon, 15 Sep 2003 18:06:04 +0200
From: Ronald Landheer-Cieslak <blytkerchan AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin pathing
Message-ID: <20030915160604.GE14922@linux_rln.harvest>
References: <bk4l06$qtn$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <bk4l06$qtn$1@sea.gmane.org>
User-Agent: Mutt/1.4i
X-Disclaimer: I had nothing to do with it - I swear!
X-loop: linux_rln.harvest

First of all: Cygwin != Bash

What you are looking at is a difference in behaviour between two versions of
Bash: one is buggy, the other one is not. The buggy one - contrary to what
you apparently expect - is the first one.

Cygwin is a POSIX emulation layer. As such, the paths it uses are POSIX-ised.
c:/directory becomes /cygdrive/c/directory. This is the expected behaviour and
will not be changed back.

As for configuration files and somesuch that control this behaviour, there are
none: it is hard-coded because it is a Good Thing.

If you do want the Windows versions of the path, use the cygpath utility.

HTH

rlc


On Mon, Sep 15, 2003 at 11:14:13AM -0400, Kevin S. wrote:
> I'm currently trying to duplicate a cygwin environment on another system.
> There is one behavior which I haven't been able to solve yet.  For instance:
> 
> Original system (cygwin v2.05a.0(3)-release):
>     you type:    "cd c:/directory"
>     you get:      "c:/directory"
> 
> New system (cygwin v2.05b.0(13)-release):
>     you type    "cd c:/directory"
>     you get:     "/cygdrive/c/directory"
> 
> Both systems run Windows 2000 sp3.  I've looked at /etc/profile,
> /home/<user>/.bash_profile and there is no .bashrc file on the original
> system.  Are there any other files which might dictate the difference in the
> above behavior?
> 
> 
> Thanks in advance,
> Kevin S.
> kseiffer AT kronos DOT com
> 
> 
> 
> 
> 
> 
> --
> 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/

-- 
I think that I shall never see
A billboard lovely as a tree.
Indeed, unless the billboards fall
I'll never see a tree at all.
		-- Ogden Nash

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