delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/22/12:46:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <42E12213.9060707@hones.org.uk>
Date: Fri, 22 Jul 2005 17:42:59 +0100
From: Cliff Hones <cliff AT hones DOT org DOT uk>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
MIME-Version: 1.0
CC: cygwin AT cygwin DOT com
Subject: Re: Cannot write files if they are hidden
References: <SERRANOw8lOdyqWmXE7000006b3 AT SERRANO DOT CAM DOT ARTIMI DOT COM>
In-Reply-To: <SERRANOw8lOdyqWmXE7000006b3@SERRANO.CAM.ARTIMI.COM>
X-Spam-Score: -2.2 (--)
X-IsSubscribed: yes

Dave Korn wrote:
> ----Original Message----
> 
>>From: Cliff Hones
>>Sent: 22 July 2005 17:27
> 
> 
>>Dave Korn wrote:
>>
>>>----Original Message----
>>>
>>>
>>>>From: Thrall, Bryan
>>>>Sent: 22 July 2005 17:01
>>>
>>>
>>>>Dave Korn wrote:
>>>>
>>>>
>>>>>----Original Message----
>>>>>
>>>>>
>>>>>>From: Thrall, Bryan
>>>>>>Sent: 22 July 2005 16:26
>>>>>
>>>>>>Is there any reason why a file should *not* be written to if it has
>>>>>>the Hidden attribute?
>>>>>
>>>>> Because it's hidden.  HTH!
>>>>>
>>>>>
>>>>>   cheers,
>>>>>     DaveK
>>>>>--
>>>>>Can't think of a witty .sigline today....
>>>>
>>>>Ah, but then Cygwin shouldn't find it to read in the first place, right?
>>>
>>>
>>>  Nope.  HTH!
>>
>>I'm not aware of what the intended behaviour in Cygwin is
> 
> 
>   The same as in Windoze.  HTH!
> 
>     cheers,
>       DaveK

Well, aside from whether that's sensible, Cygwin doesn't actually achieve this
as far as the user interface is concerned.

Windows hidden files are listed by "ls" (but aren't by windows "dir").
Under Windows you can read and append, but not replace - this is same as Cygwin.
But Windows "del <hiddenfile>" reports file not found, while Cygwin "rm" does
delete the file.

Would I be right in guessing there is no logic in Cygwin to specifically deal
with the Windows "H" attribute, and what we are seeing is the result of the
quirky Microsoft API behaviour?

-- Cliff

--
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/

- Raw text -


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