| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| 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]" <BBuchbinder AT niaid DOT nih DOT gov> |
| To: | "Ross Jordan" <rjordan AT numb DOT ca>, <cygwin AT cygwin DOT com> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| 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 |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |