X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 16 Oct 2007 17:16:43 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: "/" in filename confuses handling of spec. chars on 	non-managed mount
Message-ID: <20071016151643.GY20400@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4714C9F3.8000706@chello.hu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4714C9F3.8000706@chello.hu>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Oct 16 16:25, ?rsek L?szl? wrote:
> Hi,
>
> I'm running "CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31 10:57".
>
> If I try to create a regular file with a colon (:) in its name, cygwin 
> refuses it with ENOENT (rightly so):
>
>     $ echo test >"a:b"
>     -bash: a:b: No such file or directory

a:b is win32 speak for file b in the current working directory of
drive a:

> However, if I put, in addition, a slash in the name:
>
>     (
>       set -e -C -x
>
>       mkdir test
>       df -m test
>       dd if=/dev/zero bs=4096 count=1024 >'test/a:b'
>       df -m test
>       ls -lsn 'test/a:b'
>       ls -lsn test
>     )

test/a:b is win32 speak for a stream b of file a in the directory test.
http://www.flexhex.com/docs/articles/alternate-streams.phtml


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

