delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/16/09:24:37

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001116142406.9082.qmail@web124.yahoomail.com>
Date: Thu, 16 Nov 2000 06:24:06 -0800 (PST)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: RE: problem with mkdir -p on network-path
To: David Starks-Browning <starksb AT ebi DOT ac DOT uk>, cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

--- David Starks-Browning <starksb AT ebi DOT ac DOT uk> wrote:
> On Wednesday 8 Nov 00, Andrej Borsenkow writes:
> > 
> > > 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 AT MW1G17C% [[ -d //itsrm2 ]] && print yes!
> > mw1g017 AT MW1G17C% [[ -d //itsrm2/Microsoft ]] && print yes!
> > yes!
> 
> Should mkdir be fixed to work across network shares, or shall I add
> this to the FAQ?
> 

Someone has to change it first; so, add it to the FAQ and make it a historical
entry after someone patches it.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd AT yahoo DOT com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019