X-Recipient: archive-cygwin@delorie.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.GB8564@numb.ca>
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder@niaid.nih.gov>
To: "Ross Jordan" <rjordan@numb.ca>, <cygwin@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/


