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: stat() and tilde prefix (was bad bash tab completion)


Am 14.01.2013 11:00, schrieb Corinna Vinschen:
...

The first step of converting a POSIX path to a Windows path is to
normalize the path.  "." and ".." components are simply dropped:

   "a/b/./c"  -> "a\b\c"
   "a/b/../c" -> "a\c"
which isn't correct already (even if everything exists) because if b is a symbolic link, "b/.." is *not* "." -
(I think I came across this bug a few times already without really noticing it as a bug, having taken it as some spurious glitch...)
(Not sure whether this case is covered by further arguments in this thread)
------
Thomas


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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