Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de)
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Helmut Dipper" <helmut.dipper@sicad.de>, <cygwin@sourceware.cygnus.com>
Subject: RE: problem with mkdir -p on network-path
Date: Wed, 8 Nov 2000 18:17:53 +0300
Message-ID: <000501c04997$10893250$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
In-Reply-To: <3A09662C.912BC673@sicad.de>


> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]On Behalf Of Helmut Dipper
> Sent: Wednesday, November 08, 2000 5:42 PM
> To: cygwin@sourceware.cygnus.com
> Subject: problem with mkdir -p on network-path
>
>
> I use bash and fileutils from the latest distribution
> on Windows-NT 4.0 SP5.
>
> There is a domain server "GIS1" with a directory "GIS10".
>
> The directory //GIS1/GIS10/UT/software/GAA_31 exists,
> but not //GIS1/GIS10/UT/software/GAA_31/xxx.
>
> mkdir -p //GIS1/GIS10/UT/software/GAA_31/xxx
> delivers
> mkdir: cannot create directory `//GIS1': No such host or network path
>
> Question:
> Why tries mkdir to create the directory which already exists?
>

mkdir -p checks if every component of path exists and is directory. //GIS1 is
_not_ directory (in the common sense). It is network server. And even
//GIS1/GIS10 is not a directory - it is share on network server.

I have no idea, how to check for existence of network server. Alternatively,
mkdir -p could just skip //server and start with //server/share - this check
is O.K.:

mw1g017@MW1G17C% [[ -d //itsrm2 ]] && print yes!
mw1g017@MW1G17C% [[ -d //itsrm2/Microsoft ]] && print yes!
yes!

-andrej


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

