Bug in mkdir ?

Christopher Faylor cgf@redhat.com
Sat Jan 27 12:08:00 GMT 2001


On Sat, Jan 27, 2001 at 03:01:48PM -0500, Earnie Boyd wrote:
>Christopher Faylor wrote:
>
>> On Sat, Jan 27, 2001 at 05:03:11PM +0100, klaus.berndl@sdm.de wrote:
>> >Hello,
>> >
>> >i´m using mkdir (GNU Fileutils 4.0) of the latest cygwin and it seems that the -p option
>> >is not correct handled with all path-styles:
>> >   mkdir -p <driveletter>:/any/path/to/a/new/dir
>> >and
>> >   mkdir -p /cygdrive/<driveletter>/any/path/to/a/new/dir
>> >are working correct. But if i write
>> >   mkdir -p //<driveletter>/any/path/to/a/new/dir
>> >then the file is not created if it doesn´t exists (wrong), if it exists already
>> >nothing is done (correct).
>> >
>> >I know that this pathstyle (//driveletter>/...) is somehow "deprecated" but IMHO
>> >nevertheless it should be handled correct by every tools at least until this style is officially
>> >not supported.
>>
>> I really can't get too excited about getting an obscure use of a
>> deprecated feature working.
>>
>> Perhaps you would like to submit a patch if this is important to you.
>
>I can't get too excited about a patch being applied for it either.  Now
>on the other hand if `mkdir -p //host/share/foodir/bardir doesn't work
>then that is a different matter.  I would like to push for making
>//<driveletter>/...  invalid after the 1.1.8 release.

mkdir -p //host/share/foodir/bardir has never worked properly.  There is
a FAQ entry on this.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list