Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Starks-Browning <starksb@ebi.ac.uk>2000-11-16 18:08:35 +0300
committerDavid Starks-Browning <starksb@ebi.ac.uk>2000-11-16 18:08:35 +0300
commitcb06d7468a6618bfe07bf2aea86b698eeace8ef4 (patch)
tree3ecb7169cd7c0b9b7213d0fee00f5c97e005387f
parenteb79d041f8945b883a57c664fe9ecd5f70a52765 (diff)
New entry "Why doesn't mkdir -p work on a network share?"
-rw-r--r--winsup/doc/how-using.texinfo21
1 files changed, 21 insertions, 0 deletions
diff --git a/winsup/doc/how-using.texinfo b/winsup/doc/how-using.texinfo
index a2f7861c3..3fbbc468a 100644
--- a/winsup/doc/how-using.texinfo
+++ b/winsup/doc/how-using.texinfo
@@ -119,6 +119,27 @@ Cygwin User's Guide at
@file{http://sources.redhat.com/cygwin/cygwin-ug-net/cygwin-ug-net.html}
for more information on this variable and its settings.
+@subsection Why doesn't @samp{mkdir -p} work on a network share?
+
+Unfortunately, you cannot do something like this:
+
+@example
+bash$ mkdir -p //MACHINE/Share/path/to/new/dir
+mkdir: cannot create directory `//MACHINE': No such file or directory
+@end example
+
+This is because mkdir checks for the existence of each directory on the
+path, creating them as necessary. Since @samp{//MACHINE} is not a
+directory (you can't cd to it either), mkdir tries to create it, and
+fails.
+
+This might get fixed someday, but for now, you have to work around it:
+
+@example
+bash$ cd //MACHINE/Share
+bash$ mkdir -p path/to/new/dir
+@end example
+
@subsection Why don't cursor keys work under Win95/Win98?
@strong{(Please note: This section has not yet been updated for the latest