delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/24/23:34:45

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: "Joe Smith" <unknown_kev_cat AT hotmail DOT com>
Subject: Re: ":" in filename
Date: Fri, 24 Mar 2006 23:33:59 -0500
Lines: 31
Message-ID: <e02h7v$ovh$1@sea.gmane.org>
References: <8389af8b0603241937m62e9701y596bed40382bd6f0 AT mail DOT gmail DOT com> <4424BE59 DOT 9184F1E1 AT dessent DOT net>
Mime-Version: 1.0
X-IsSubscribed: yes
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

"Brian Dessent" <brian AT dessent DOT net> wrote in message 
news:4424BE59 DOT 9184F1E1 AT dessent DOT net...
> Hiroki Sakagami wrote:
>
>> What happens in the below commands?  The ":" in filenames seems to be
>> a problem.  But I don't understand the rule.
>
> The colon is used by NTFS to signify alternate data streams.  You can
> google for more information about this, e.g.
> <http://www.ntfs.com/ntfs-multiple.htm>.

Actually it is a limitation of Windows. NTFS supports a "POSIX" filename 
namespace which supports up to 255 unicode (probably utf-16) characters, 
excluding only NUL (0x0000) and Forward Slash '/'. Window's main subsystem 
does not support the POSIX NTFS file namespace, but I suspect the Windows 
POSIX subsystem (a.k.a. INTERIX) does support the POSIX NTFS file namespace.

Windows's Subsystem system is very interesting, but like many other 
interesting features of Windows NT, it came from overengineering, and is 
amost never used.
(One can render windows virtually worthless by disabling the "Windows" 
subsystem!)

Interestingly NTFS alows some other strange configurations, including files 
that take up zero disk space because the data section is actually included 
in the MFT, and directories with a default datasteam (Thus it would be both 
a file and a directory. No clue how Windows would react to that!)





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