find(1) assertion for folder with a sub-folder named `x:'

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jun 19 14:40:00 GMT 2009


On Jun 19 17:55, Haojun Bao wrote:
> hi, 
> 
> Here's a test case to make find(1) assertion:
>     
>     mkdir no-such-dir/foo/bar: -p
> 
>     #this will not assert
>     find no-such-dir/  
> 
>     mkdir no-such-dir/foo/c: -p

I think the right answer here is "don't do that".  Don't create files or
directories starting with a single character, followed by a colon.  The
problem is that a path starting with "X:" is treated as an absolute
Win32 path.

Right now you cannot have both.  Either a path starting with "X:" is
treated as Win32 path, or Cygwin must stop handling Win32 paths at all
and only allow POSIX paths.  


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/



More information about the Cygwin mailing list