[To: line drastically trimmed]

The below is all true. I can only add the Cygwin uses a leading '//' 
specially (as Posix allows) to encode drivenames for their Unix emulation. 
For example, 'c:/windows' can and will be encoded as '//c/windows'. So 
preserving the first double-slash would a good thing IMO.

> I'm guessing that you are now talking about `dirname' from Bash or
> from Sh-utils, yes?
> 
> If so, then it does pretty much the same thing, as far as I could
> see.  "//foo/bar" yields "//foo", "//foo" yields "/".
> 
> > How about backslash handling?
> 
> The ported `dirname' handles backslashes exactly as slashes.
> 


Reply via email to