X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=sEPSr+1vBVa/yEwTVr2KkuNW250EkH6nMnqqpiRlaqN sCIxPM5eRuwbENG5SzIqJn3bBFhFJWWr9fz+EIEUcQjSu189GL8LVqIlv/RihvPG +8jn4g+39YrE5o8vykb+fK0qWOnWvdTwdKuXiKmqGrpnDiUsU69TI1xxILn3e4v8 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=METB8ZxF4TMudPcjUTQVLX1mpZs=; b=m2i1lAlmyXss2axuU mIU+F9iDdjyh2Wx2sJ2rZoDvvWO5EKxFE1XJWlUaaUEAEbTQrJX4JXtyNjqckIN0 PxywI/VFWi40/h2zrzoZYpwN4Yik1ypbRMFFtVuy8BRHPXvSaiQgB7x5YF1WMm2o QPQFZbky6KrfjIXMeTkY3ZaOCc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2 autolearn=ham version=3.3.2 spammy=became, bell, carriage, quotes X-HELO: Ishtar.sc.tlinx.org Message-ID: <5C74655E.9080500@tlinx.org> Date: Mon, 25 Feb 2019 13:59:58 -0800 From: L A Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin AT cygwin DOT com, "Taylor, Kit" Subject: Re: vim 64 conflict with windows slash and swapfile References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2/20/2019 8:28 AM, Taylor, Kit wrote: > Don't know if this is a VIM bug or CYGWIN bug. Probably something I have configured incorrectly. > > I just cut over to Cygwin 64-bit, on Windows 10, VIM 8.0, Windows command line (not bash). > When opening a file to edit, using back slashes in the path, VIM warns "unable to open swapfile". I'm not sure why it would be prevented from creating a .FILENAME.swp, but paths in cygwin (and linux and posix) use '/'. Internally at the NT level, many of the windows libraries, '/' is accepted. The same may not be true of all windows libraries. However, you should use the '/' delimiter for the cygwin version of vim. Note, '\' is a character in linux/posix/cygwin meaning to quote the next character. So an unquoted or double quote string will get rid of the backslashes and produce a decoded output. If you are in bash and want to use '\', you need to either double the backslashes (thus quoting the '\') or put the whole string in single quotes. From the bash manpage: backslash-escaped characters replaced as specified by the ANSI C standard. Backslash escape sequences, if present, are decoded as follows: \a alert (bell) \b backspace \e \E an escape character \f form feed \n new line \r carriage return \t horizontal tab \v vertical tab \\ backslash \' single quote \" double quote \? question mark \nnn the eight-bit character whose value is the octal value nnn (one to three digits) \xHH the eight-bit character whose value is the hexadecimal value HH (one or two hex digits) \uHHHH the Unicode (ISO/IEC 10646) character whose value is the hexadecimal value HHHH (one to four hex digits) \UHHHHHHHH the Unicode (ISO/IEC 10646) character whose value is the hexadecimal value HHHHHHHH (one to eight hex digits) \cx a control-x character -------- > Swap file is not, in fact, created. > Depending on the filename, if it contained any of the above escape sequences, they'd be replaced with their indicated decoding. > Not a large bug, but a nuisance. Thanks. > --- Want to talk about nuisances... Bill Gates changed the file-system object separator from '/' to '\' so that DOS would look less like CP/M -- a competing micro OS at the time that copied the use of '/' from unix. He was trying to avoid the impression that he got the idea of using '/' to delineate file system hierarchy as there was more concern about lawsuits by some companies in "look-alike" interfaces. Example: Apple, besides suing MS for its "Recycling Bin" as Apple had a trashbin on their desktop with similar functionality also sued some companies producing "lookalikes (Franklin) out of business. Apple eventually lost their lawsuit against MS as interfaces became "uncopyrightable", while it was pointed out that Apple had stolen many of its GUI concepts from Xerox who invented and used them first -- and had demoed them to Wozniak and Jobs. -- 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