X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Why do file permissions change after editing a file with vim? Date: Sun, 11 Nov 2007 17:19:11 -0500 Message-ID: <31DDB7BE4BF41D4888D41709C476B6570929A5AE@NIHCESMLBX5.nih.gov> In-Reply-To: <20071110080026.GB8564@numb.ca> References: <20071110080026 DOT GB8564 AT numb DOT ca> From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "Ross Jordan" , 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id lABMJKRj025169 From: Ross Jordan; Sent: Saturday, November 10, 2007 3:00 AM > When I modify files with cygwin's vim, they become inaccessible. It > seems the permissions are getting changed when I save the file. Any > idea why this is happening? This does not happen from a bash shell, > only when I directly launch vim from a windows cmd.exe window. See > below. I have no idea why. But it would seem to me that that using the native Windows version of vim in a cmd.exe shell might possibly avoid this. Another thing to try would be to launch vim via a batch file like this. @echo off bash -c vim %1 %2 %3 %4 %5 %6 %7 %8 %9 - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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/