Can't write any.files from vi

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Sep 6 00:36:00 GMT 2002


On Fri, Sep 06, 2002 at 04:45:14PM +1000, luke.kendall@cisra.canon.com.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@cygwin.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/



More information about the Cygwin mailing list