delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/02/07:58:21

X-Spam-Check-By: sourceware.org
Date: Mon, 2 Oct 2006 07:58:03 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mssing packages for cygwin
Message-ID: <20061002115803.GA25943@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <45206395 DOT 8070204 AT cygwin DOT com> <BAY22-F12282908FBFE8EA3DE52D78B1F0 AT phx DOT gbl>
Mime-Version: 1.0
In-Reply-To: <BAY22-F12282908FBFE8EA3DE52D78B1F0@phx.gbl>
User-Agent: Mutt/1.5.11
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

On Mon, Oct 02, 2006 at 04:04:30AM +0000, Tom Lee wrote:
>since the root is c:/cygwin, "mv *.txt /my/directory" under cygwin will 
>goes to c:/cygwin/my/directory not c:/my/directory.
>
>it looks that all C program containing getcwd(), chdir() functions will not 
>work under cycgwin unless these C programs are compiled under cygwin, since 
>they won't recognize /cygdrive/c.

Well, duh?

>I really don't see any difference for using /cygdrive/c/ from c:/ under 
>windows. /cygdrive/c/ is windows specific path, so does c:/.

Cygwin emulates Linux.  "c:" has no special meaning to Linux so programs
which are designed to work on Linux may not understand the Windows
notion of "c:" as "the C drive".  We invented "/cygdrive" as a method for
referencing "the C drive" in a Linux/POSIX fashion.

This is how things have worked in Cygwin for years.  It is not going to
change and it is not really worth a long email discussion thread.

Can we move on now, please?
--
Christopher Faylor			spammer? ->	aaaspam AT sourceware DOT org
Cygwin Co-Project Leader				aaaspam AT duffek DOT com
TimeSys, Inc.

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