delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/06/03:34:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 6 Sep 2002 09:34:12 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Can't write any.files from vi
Message-ID: <20020906093412.A1574@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0209052236360 DOT 13825-100000 AT slinky DOT cs DOT nyu DOT edu> <20020906064505 DOT 7B4B45AAA AT ivory DOT research DOT canon DOT com DOT au>
Mime-Version: 1.0
In-Reply-To: <20020906064505.7B4B45AAA@ivory.research.canon.com.au>
User-Agent: Mutt/1.3.22.1i

On Fri, Sep 06, 2002 at 04:45:14PM +1000, luke DOT kendall AT cisra DOT canon DOT com DOT au wrote:
> And in particular:
> 
> $ vi .Xresources        # Verify that I can't write it.
> $ attrib .Xresources
>     H      D:\home\luke\.Xresources  
> $ attrib -h .Xresources
> $ attrib .Xresources
>            D:\home\luke\.Xresources    
> $ vi .Xresources        # Check if I can now write it?  Yes!   
> 
> Hidden files are meant to have the same semantics as "." files in Unix,
> I thought?  If so, then I think it's an error that vi is considering
> them to be unwriteable.
> 
> The reason for marking such files as hidden is the same as in Unix - to
> prevent accidental fiddling.
> 
> An interesting question is, why does it seem to be only vi (vim) that
> exhibits this behaviour?  It's vim 6.1, BTW.

I'm using vim 6.1 as well, obviously and changing the hidden attribute
doesn't change the behaviour of vim:

$ vi .cshrc        # change, save works
$ attrib +H .cshrc
$ vi .cshrc        # change, save works
$ attrib -H .cshrc
$ vi .cshrc        # change, save works

There's another permission problem somewhere.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019