On Mon, Apr 15, 2013 at 12:01 PM, Eli Zaretskii wrote:
>> From: "Warlich, Christof"
>> Date: Mon, 15 Apr 2013 14:27:39 +0000
>> Accept-Language: en-US
>> > Isn't this simply a problem with Coreutils, which collapses multiple
>> > slashes on the application level?
>> Hmm - unlikely to me, because mkdir _does_ work as expected without the -p switch.
> That is actually an argument to the contrary.
It actually works because //sharehost/sharefolder exists already so -p
> Anyway, if you look into the sources of Coreutils, you will see that
> it calls a different function (make_dir_parents) for the -p option,
> and that function does have some funny logic regarding the leading
> slashes. Stepping through that function with a debugger should show
> exactly what is going wrong there, and why.
I suspect you're correct. POSIX declares // the same as / so the
reduction is happening outside of MSYS.
The workaround is to map your shares to drive letters and use the
drive letter with MSYS.