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: Subject: Re: File paths redirected to MSYS directory From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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