X-Recipient: archive-cygwin@delorie.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@groupwise.swin.edu.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.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
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 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

