delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/28/16:26:39

X-Recipient: archive-cygwin AT delorie DOT 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 AT bopp DOT net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Query about how to get 'full' Cygwin/unix support
References: <33544853 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <33544853.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


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