delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/15/14:53:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40,PLING_QUERY,TW_YG
X-Spam-Check-By: sourceware.org
Message-ID: <4C17CC15.4000407@bopp.net>
Date: Tue, 15 Jun 2010 13:53:09 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Hello! I can't get to c:\Program Files using c:\Program/ Files\ any suggestions?
References: <4C17B0BA DOT 10607 AT caltech DOT edu>
In-Reply-To: <4C17B0BA.10607@caltech.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 6/15/2010 11:56 AM, Matthew Thornton wrote:
> Hello!
> 
> I just recently upgraded to the newer version of cygwin and I am not
> unable to change directory into Program Files or My Documents using the
> forward slash.  This was working before the upgrade and I was wondering
> what I should check to see how it was disabled.  I have also tried using
> single quotation marks 'c:\Program Files' and this does not work
> either.  I really don't want to mount all of the programs that I want to
> use that are installed in Program Files, and I can anyway because there
> are only 30 mount points possible and I have more than 30 programs in
> file folders with spaces in them in Program Files. Is there any way
> around this problem?  Thanks!

If the path stated in the subject of this message is any indication, it
appears that you have your slashes swapped.  You're using forward slashes
for backslashes and backslashes for forward slashes.  What's more, you're
most likely trying to pass Windows-style paths to Cygwin programs, which
won't always work like you expect or at all in some cases.

Get familiar with the cygpath program and use it to convert your
Windows-style paths into Cygwin-style paths:

$ cygpath 'C:\Program Files'
/cygdrive/c/Program Files

If you do this, then you can add the paths to all your programs into PATH
so that you can more readily access them without using their full paths all
the time.

-Jeremy

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

- Raw text -


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