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

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F737371.2030608@redhat.com>
Date: Wed, 28 Mar 2012 14:24:17 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 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>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
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

--------------enig9FEA6927684C2C5ABE023D47
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 03/28/2012 02:07 PM, AngusC wrote:
>=20
> Hello
>=20
> 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.
>=20
> When I run make it has commands to do a mkdir -p <foldername>
>=20
> But mkdir -p myfolder creates a folder called -p and also a folder called
> myfolder???
>=20
> Why the strange behaviour?  How would I get the standard unix behaviour?

Probably because you used cmd's builtin 'mkdir' (which doesn't
understand -p) rather than actually invoking /bin/mkdir (of course,
since you are running in cmd, that would be spelled
c:\path\to\cygwin\bin\mkdir).

Why are you using cmd in the first place?  Cygwin also provides 'bash'
as a shell, and bash doesn't have a broken builtin mkdir like cmd does.

--=20
Eric Blake   eblake AT redhat DOT com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig9FEA6927684C2C5ABE023D47
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPc3NyAAoJEKeha0olJ0Nq3AUIAI/QiIpMB+y2CHMvpfZjqBr/
eBeT8FRUFo9qfVL2qhjHTy/X4D5bh0Kzy4R+Jvx3cXVmbypWu1a30kXy4z8uD/8d
uEQI1iZS2OtBigxiwF6EgF6JytDC6LnQXQwfyHjoN3bskvMmNqetLz10gmXdJJDY
tZ0o9a5XDEesLVnZAsYsXsOgB8cBs6pAHvwzJITNZEeMq11WxMcSOnSkN5KW8NVc
vt3Sfbd+hre19dEXrDpKSnRVq0VWB92hhjVjUDpM7Ylpcvzv6Xl22Alb4zT8grMk
OTNuJsiycKtxqbUyoWU9rjv+YIwPBfNisv6qJ4RGvxqjKO72nSPC/0cXAzX1cUI=
=XtvM
-----END PGP SIGNATURE-----

--------------enig9FEA6927684C2C5ABE023D47--

- Raw text -


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