X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4F7373C2.5080001@bopp.net>
Date: Wed, 28 Mar 2012 15:25:38 -0500
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Query about how to get 'full' Cygwin/unix support
References: <33544853.post@talk.nabble.com>
In-Reply-To: <33544853.post@talk.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 03/28/2012 03:07 PM, AngusC wrote:
> 
> Hello
> 
> I am using cygwin and have copied the core cygwin files to a folder called
> binarytools on my Windows PC.  This folder is first item in path env
> variable.
> 
> When I run make it has commands to do a mkdir -p <foldername>
> 
> But mkdir -p myfolder creates a folder called -p and also a folder called
> myfolder???
> 
> Why the strange behaviour?  How would I get the standard unix behaviour?

I believe that mkdir is a builtin function of the cmd shell which you
are probably using.  If I'm right, then that function will supersede
anything in the PATH.  That means that you're not using Cygwin's mkdir
program in your command which should explain the behavior you see.

To work around this, you can either run your commands from within a bash
shell rather than cmd or you can explicitly call the program using its
absolute path, such as C:\binarytools\bin\mkdir.exe.  Maybe just calling
mkdir.exe would also work.

-Jeremy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

