On Sun, Jul 09, 2000 at 08:27:00PM -0400, Mark E. wrote:
>[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.

Actually the //x drive name usage is being deprecated.

More importantly, however, *windows* handles //foo/bar specially.  You
can't drop the leading /.  I belive that POSIX says that it is allowable
to treat this specially.

cgf

>> 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