On Fri, 17 Dec 2004, Christopher Faylor wrote: > On Fri, Dec 17, 2004 at 06:01:04PM -0500, Pierre A. Humblet wrote: > >Christopher Faylor wrote: > > > >> While I detest the trailing dot crap, I don't want cygwin to be > >> inconsistent. I don't want ls /bin./ls.exe to fail but ls > >> /cygdrive/c/bin./ls.exe to work. > > > >Assuming a normal install, the first one is c:\cygwin\bin.\ls.exe, > >which would NOT fail, while the second is c:\bin.\ls.exe, which would > >fail as expected (not due to dots). > > Ok. Yes. I had a typo. > > If /cygdrive/c/cygwin/bin./ls.exe works, then /bin./ls.exe should also > work. Or, both should fail. "consistent"
If I may chime in, I think there are at least three separate possibilities for accessing each directory: 1) via a managed Cygwin mount; 2) via a regular Cygwin mount; 3) via a /cygdrive-prefixed path; and maybe 4) via a Win32 path. There's a need for consistency in each of the above cases, but not between cases. Each may justifiably have different behavior. We already default to textmode for 4), and 2) and 3) may have different textmode/binmode behavior. It could be argued that as you go down this list, the POSIXness decreases, so it's ok to distinguish trailing dots, e.g., in the first two cases, and ignore them in the latter two. Just my $0.02. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT