X-Spam-Check-By: sourceware.org Message-ID: <43F331D9.3030703@byu.net> Date: Wed, 15 Feb 2006 06:51:21 -0700 From: Eric Blake User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: cygwin AT cygwin DOT com CC: jgriffin Subject: Re: Paths and Cygwin References: <20060209145338 DOT M55639 AT pclnet DOT net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Igor Peshansky on 2/9/2006 8:51 AM: > >>Input: ./mkdirhier.sh "/home/jgriffin/test/level1/level2" >& out.txt >>[snip] >>Here's the output: >>prefix: / >>mkdir: cannot create directory `//home': No such file or directory > > > None of the above is Cygwin-specific, BTW -- except for the fact that > Linux will treat a leading "//" as a "/" (masking the bug), and Cygwin > interprets it as a network share prefix (also, filenames with spaces are a > bit more common on Cygwin). Furthermore, what's wrong with 'mkdir -p "/home/jgriffin/test/level1/level2'? Let the standardized coreutil do all the work for you, in just one process, rather than invoking the several processes of your expensive shell script! - -- Life is short - so eat dessert first! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD8zHZ84KuGfSFAYARAp2QAJ4tA4yAFaGk4fvVNfOMxsCJmsKgIwCdGaJw 52oB0EQfZZwJyYPz83oTrSw= =B0/i -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/