delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/17/11:46:48

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B02D31B.20603@towo.net>
Date: Tue, 17 Nov 2009 17:45:15 +0100
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Seems like treatment of NTFS ADS (foo:bar) changed between 1.5 and 1.7 but not mentioned in What's Changed
References: <416096c60911151427g12cc5582t6d9bbdc063c5b14a AT mail DOT gmail DOT com> <4B013E09 DOT 1010209 AT towo DOT net> <20091116120650 DOT GH29173 AT calimero DOT vinschen DOT de> <4B01462A DOT 3080400 AT towo DOT net> <416096c60911160532j2c49cd7ftb79fcc7295f9be21 AT mail DOT gmail DOT com> <20091116135644 DOT GK29173 AT calimero DOT vinschen DOT de> <4B01639C DOT 8000403 AT towo DOT net> <4B0167EF DOT 8030807 AT towo DOT net> <20091116163415 DOT GD20652 AT ednor DOT casa DOT cgf DOT cx> <4B02BB32 DOT 4090403 AT towo DOT net> <20091117151248 DOT GC15007 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20091117151248.GC15007@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Christopher Faylor wrote:
> On Tue, Nov 17, 2009 at 04:03:14PM +0100, Thomas Wolff wrote:
>   
>> Christopher Faylor wrote:
>>     
>>> On Mon, Nov 16, 2009 at 03:55:43PM +0100, Thomas Wolff wrote:
>>>   
>>>       
>>>> Thomas Wolff wrote:
>>>>     
>>>>         
>>>>>> ...
>>>>>>             
>>>> Anyway, maybe some syntax could be found that would not be too harmful 
>>>> to become "reserved" for this purpose...
>>>> <end:of:rationale:for:weird:feature>
>>>>     
>>>>         
>>> Sorry but I agree with Corinna.  On linux/UNIX you can create a file
>>> with a colon in it.  We can now do this in Cygwin 1.7 and that's a good
>>> thing.  Complicating the path handling to deal specially with colons in
>>> a filename doesn't sound like a good idea to me.
>>>   
>>>       
>> Sorry that I take this up once more (after promising <end:of>), but I 
>> had this additional idea after seeing your point about being strictly 
>> consistent with the POSIX pathname namespace:
>>
>> So what about using "/" as a delimiter? If "foo" is a file, "foo/bar" is 
>> not a legal pathname in POSIX, so it could be used to access the "bar" 
>> fork of "foo" without causing real harm. There might be stronger 
>> objection to implicitly creating a fork with this syntax than to just 
>> accessing it, which could be resolved with either a $CYGWIN-configurable 
>> option or a mkfork command.
>>     
>
> How could we possibly use '/' as a delimiter?  Are you really advocating
> that we treat every file as a potential directory?  So every time
> someone says "foo/bar" and "foo" is a file we try to open "foo:bar"?
> And what happens when someone says "ls -l foo"?  Should that work too?
>   
I'm not really "advocating" it, it's just an idea how it could be 
handled in case support *is* desired.
And yes, if someone *wants* access to this NTFS feature, why not this 
way? It's a trade-off - weird (but acceptable) handling for a  weird 
feature.

Whether the default for ls is to show forks or not, might be 
configurable again. If it does (maybe with -l or -a or -la), it could 
look like:
... foo
... foo/bar
so it should not pretend a virtual directory structure here.

Thomas

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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