delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/29/02:20:28

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4CF3C45C02000052000170C8@groupwise.swin.edu.au>
References: <4CF3C45C02000052000170C8 AT groupwise DOT swin DOT edu DOT au>
Date: Mon, 29 Nov 2010 07:20:13 +0000
Message-ID: <AANLkTi=HNGTsKg+yWgz4dykddNPdgD04dawv4VOaPCNw@mail.gmail.com>
Subject: Re: File paths redirected to MSYS directory
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 29 November 2010 04:18, Nathan Rose wrote:
> I have just installed Cygwin on my WinXP box for the first time. I alread=
y had MSYS installed. They are installed in the directories C:\cygwin and C=
:\msys respectively.
>
> Simple file operations like cp or mv work fine within Cygwin . However, w=
hen I try to open a file with vi, it opens the equivalent file in the MSYS =
directory. For instance, the command 'vi /etc/fstab' will open the file 'C:=
\msys\1.0\etc\fstab' instead of 'C:\cygwin\etc\fstab'. Similarly, running m=
ake failed at one point with the error "bash.exe: warning: could not find /=
tmp, please create!" despite the directory 'C:\cygwin\tmp' existing (wherea=
s the equivalent in MSYS does not exist).

You're probably invoking MSYS's versions of vi and make. You can check
that with the which command. Ensure that you do have the Cygwin
versions of those installed, and that the Cygwin bin directory comes
before MSYS's in the Cygwin PATH. To avoid such confusion, you might
want to remove MSYS's bin directory from the global Windows path,
assuming that's where it came from.

Andy

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