X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: "Joe Smith" Subject: Re: ":" in filename Date: Fri, 24 Mar 2006 23:33:59 -0500 Lines: 31 Message-ID: References: <8389af8b0603241937m62e9701y596bed40382bd6f0 AT mail DOT gmail DOT com> <4424BE59 DOT 9184F1E1 AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" 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. > . 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/