This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]