Cannot write files if they are hidden

Thrall, Bryan bryan.thrall@flightsafety.com
Fri Jul 22 15:30:00 GMT 2005


I've noticed that I am unable to write files with the Windows 'Hidden'
attribute from vi and xemacs. If I use Windows to remove the Hidden
attribute, I can write the file from vi; If I add the attribute back, I
cannot write anymore (I get "Can't open file for writing" in vi).

Interestingly, "touch hiddenfile" and "echo something >> hiddenfile" do
work. "echo something > hiddenfile" does not; it prints "Permission
denied".

This has been tested on Cygwin 1.5.12 (see attached cygcheck.out) and
the 20050716 snapshot (see attached cygcheck_20050716.out). Both show
the same behavior.

Is there any reason why a file should *not* be written to if it has the
Hidden attribute?

Thanks,
--
Bryan Thrall
FlightSafety International
Bryan.Thrall@flightsafety.com 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 39975 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050722/86b1a410/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck_20050716.out
Type: application/octet-stream
Size: 67824 bytes
Desc: cygcheck_20050716.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050722/86b1a410/attachment-0001.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list