delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: [ANNOUNCEMENT] Updated: vim-7.0.122-1 |
Date: | Wed, 11 Oct 2006 18:36:52 +0100 |
Message-ID: | <014c01c6ed5b$d6a1e9a0$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <452D2696.3060602@users.sourceforge.net> |
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 11 October 2006 18:15, Frank Fesevur wrote: > I've tried his test case and Mark is right. When a symlink is created > with a win32 path, vim can not create the swapfile. When a symlink is > created with POSIX filenames there is no problem. Well of course not. Cygwin - as a special feature - interprets DOS paths. VIM has no notion of them, so when it reads the symlink content and tries to figure out which directory it is pointing to a file in, it can't understand what's going on. The solution I'm afraid is "WDDTT" WRT creating cygwin symlinks with dos paths. Cygwin can do magical path translation when someone passes an argument to open(...), but there's no way it can know when a program reads a path from somewhere and manipulates it itself. Maybe the base-files package should create the symlinks to cygdrive paths in the first place? It solves the problem: dk AT rainbow ~> cd /etc dk AT rainbow /etc> ln -s /cygdrive/c/WINDOWS/system32/drivers/etc/hosts cyghosts dk AT rainbow /etc> ls -la | grep hosts lrwxrwxrwx 1 dk Domain Users 46 Oct 11 18:31 cyghosts -> /cygdrive/c/WINDOWS/system32/drivers/etc/hosts lrwxrwxrwx 1 dk Domain Users 37 May 18 13:17 hosts -> C:\WINDOWS\system32\drivers\etc\hosts dk AT rainbow /etc> vim hosts E303: Unable to open swap file for "hosts", recovery impossible "hosts" [dos format] 29 lines, 1101 characters Press ENTER or type command to continue dk AT rainbow /etc> vim cyghosts "cyghosts" [dos format] 29 lines, 1101 characters ... although I can see problems arising when someone uses mount to rename the cygdrive mount. Maybe it would be worth providing a notation that means 'cygdrive, no matter how it may have been renamed. cheers, DaveK -- Can't think of a witty .sigline today.... -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |