From unknown Sun Jun 15 08:57:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11111: Problems with mkdir -p usage Resent-From: AngusC Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 28 Mar 2012 13:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11111 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 11111@debbugs.gnu.org X-Debbugs-Original-To: Bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133293960416340 (code B ref -1); Wed, 28 Mar 2012 13:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Mar 2012 13:00:04 +0000 Received: from localhost ([127.0.0.1]:42488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCsTd-0004D4-Iu for submit@debbugs.gnu.org; Wed, 28 Mar 2012 09:00:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55285) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCpx5-0007uv-3n for submit@debbugs.gnu.org; Wed, 28 Mar 2012 06:18:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCpSj-0004WL-5M for submit@debbugs.gnu.org; Wed, 28 Mar 2012 05:46:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCpSj-0004WF-2K for submit@debbugs.gnu.org; Wed, 28 Mar 2012 05:46:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCpSd-0003Jw-4J for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 05:46:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCpSW-0004Uz-To for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 05:46:34 -0400 Received: from sam.nabble.com ([216.139.236.26]:43548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCpSW-0004Uh-P8 for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 05:46:28 -0400 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SCpSU-00012V-RI for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 02:46:26 -0700 Message-ID: <33544820.post@talk.nabble.com> Date: Wed, 28 Mar 2012 02:46:26 -0700 (PDT) From: AngusC MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: anguscomber@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -1.1 (-) X-Mailman-Approved-At: Wed, 28 Mar 2012 08:59:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.1 (-) 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 But mkdir -p myfolder creates a folder called -p and also a folder called myfolder??? Why the strange behaviour? If I do which mkdir - it displays as below: D:\>which mkdir /binaryTools/mkdir So it must be using the Cygwin version? Angus -- View this message in context: http://old.nabble.com/Problems-with-mkdir--p-usage-tp33544820p33544820.html Sent from the Gnu - Coreutils - Discuss mailing list archive at Nabble.com. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 28 11:17:54 2012 Received: (at control) by debbugs.gnu.org; 28 Mar 2012 15:17:54 +0000 Received: from localhost ([127.0.0.1]:43396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCudF-0000og-Rs for submit@debbugs.gnu.org; Wed, 28 Mar 2012 11:17:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63200) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCucx-0000o7-G2; Wed, 28 Mar 2012 11:17:51 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2SEkCa7022265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 28 Mar 2012 10:46:13 -0400 Received: from [10.3.113.31] (ovpn-113-31.phx2.redhat.com [10.3.113.31]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2SEkCxg011588; Wed, 28 Mar 2012 10:46:12 -0400 Message-ID: <4F732433.8050706@redhat.com> Date: Wed, 28 Mar 2012 08:46:11 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0 MIME-Version: 1.0 To: AngusC Subject: Re: bug#11111: Problems with mkdir -p usage References: <33544820.post@talk.nabble.com> In-Reply-To: <33544820.post@talk.nabble.com> X-Enigmail-Version: 1.4 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig26FF214BB313E8D7666DACC5" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control Cc: 11111-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig26FF214BB313E8D7666DACC5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable tag 11111 notabug thanks On 03/28/2012 03:46 AM, AngusC wrote: >=20 > Hello >=20 > I am using cygwin and have copied the core cygwin files to a folder cal= led > 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 >=20 > But mkdir -p myfolder creates a folder called -p and also a folder call= ed > myfolder??? >=20 > Why the strange behaviour? Probably because you are using cmd.exe as your shell, and thus invoking the built-in 'mkdir' of that shell (which does not understand -p). >=20 > If I do which mkdir - it displays as below: > D:\>which mkdir > /binaryTools/mkdir 'which' only knows how to interpret your PATH; it doesn't know about the built-ins of cmd that get used in preference to a PATH search. To solve your problem, either invoke mkdir by using a full pathname, or switch to a better shell than cmd (cygwin ships bash for a reason). As this is not a bug in coreutils, so much as a usage error on your part, I'm closing out this bug report. Feel free to add further comments if you feel the need, and you may also get better support if you ask on the cygwin list. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig26FF214BB313E8D7666DACC5 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/ iQEcBAEBCAAGBQJPcyQ0AAoJEKeha0olJ0NqQnoH/RuAfVKVViw0sSWkT/hp78vf XaUH8rZBXV/ZQqWoAUL9dHF07wozLqHMskNXHuNEN7KWLvM0jRYCPQfYRIq4zZd8 P8X0SQTvYp2HhVGJHvpoQjoUt5NdEy5qNubarYUh5xf1yEYVFmqDQ7ASRm2vww2P q1QU9CMlssq5NqowoXNOssKMizp16QGXnZoWc1eVAhbQnC218NO0I3sPnMwOGLKW BbT96ScpaokzsiqvQAuqM3ionwGDuNK7x7zVvO4bue+vR9doBXrjKBmTqHIlgG4W q0KlRvqMJ/YHzemIG0Pw+TquTOFgAiOdQwbb5Bu7p/vXK9bjxyJiI3FX2h263nw= =J9u6 -----END PGP SIGNATURE----- --------------enig26FF214BB313E8D7666DACC5-- From unknown Sun Jun 15 08:57:14 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: AngusC Subject: bug#11111: closed (Re: bug#11111: Problems with mkdir -p usage) Message-ID: References: <4F732433.8050706@redhat.com> <33544820.post@talk.nabble.com> X-Gnu-PR-Message: they-closed 11111 X-Gnu-PR-Package: coreutils X-Gnu-PR-Keywords: notabug Reply-To: 11111@debbugs.gnu.org Date: Wed, 28 Mar 2012 15:18:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1332947883-3170-1" This is a multi-part message in MIME format... ------------=_1332947883-3170-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11111: Problems with mkdir -p usage which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11111@debbugs.gnu.org. --=20 11111: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11111 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1332947883-3170-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11111-done) by debbugs.gnu.org; 28 Mar 2012 15:17:54 +0000 Received: from localhost ([127.0.0.1]:43394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCudE-0000od-TF for submit@debbugs.gnu.org; Wed, 28 Mar 2012 11:17:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63200) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCucx-0000o7-G2; Wed, 28 Mar 2012 11:17:51 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2SEkCa7022265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 28 Mar 2012 10:46:13 -0400 Received: from [10.3.113.31] (ovpn-113-31.phx2.redhat.com [10.3.113.31]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q2SEkCxg011588; Wed, 28 Mar 2012 10:46:12 -0400 Message-ID: <4F732433.8050706@redhat.com> Date: Wed, 28 Mar 2012 08:46:11 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0 MIME-Version: 1.0 To: AngusC Subject: Re: bug#11111: Problems with mkdir -p usage References: <33544820.post@talk.nabble.com> In-Reply-To: <33544820.post@talk.nabble.com> X-Enigmail-Version: 1.4 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig26FF214BB313E8D7666DACC5" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11111-done Cc: 11111-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig26FF214BB313E8D7666DACC5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable tag 11111 notabug thanks On 03/28/2012 03:46 AM, AngusC wrote: >=20 > Hello >=20 > I am using cygwin and have copied the core cygwin files to a folder cal= led > 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 >=20 > But mkdir -p myfolder creates a folder called -p and also a folder call= ed > myfolder??? >=20 > Why the strange behaviour? Probably because you are using cmd.exe as your shell, and thus invoking the built-in 'mkdir' of that shell (which does not understand -p). >=20 > If I do which mkdir - it displays as below: > D:\>which mkdir > /binaryTools/mkdir 'which' only knows how to interpret your PATH; it doesn't know about the built-ins of cmd that get used in preference to a PATH search. To solve your problem, either invoke mkdir by using a full pathname, or switch to a better shell than cmd (cygwin ships bash for a reason). As this is not a bug in coreutils, so much as a usage error on your part, I'm closing out this bug report. Feel free to add further comments if you feel the need, and you may also get better support if you ask on the cygwin list. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig26FF214BB313E8D7666DACC5 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/ iQEcBAEBCAAGBQJPcyQ0AAoJEKeha0olJ0NqQnoH/RuAfVKVViw0sSWkT/hp78vf XaUH8rZBXV/ZQqWoAUL9dHF07wozLqHMskNXHuNEN7KWLvM0jRYCPQfYRIq4zZd8 P8X0SQTvYp2HhVGJHvpoQjoUt5NdEy5qNubarYUh5xf1yEYVFmqDQ7ASRm2vww2P q1QU9CMlssq5NqowoXNOssKMizp16QGXnZoWc1eVAhbQnC218NO0I3sPnMwOGLKW BbT96ScpaokzsiqvQAuqM3ionwGDuNK7x7zVvO4bue+vR9doBXrjKBmTqHIlgG4W q0KlRvqMJ/YHzemIG0Pw+TquTOFgAiOdQwbb5Bu7p/vXK9bjxyJiI3FX2h263nw= =J9u6 -----END PGP SIGNATURE----- --------------enig26FF214BB313E8D7666DACC5-- ------------=_1332947883-3170-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Mar 2012 13:00:04 +0000 Received: from localhost ([127.0.0.1]:42488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCsTd-0004D4-Iu for submit@debbugs.gnu.org; Wed, 28 Mar 2012 09:00:04 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55285) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SCpx5-0007uv-3n for submit@debbugs.gnu.org; Wed, 28 Mar 2012 06:18:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCpSj-0004WL-5M for submit@debbugs.gnu.org; Wed, 28 Mar 2012 05:46:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCpSj-0004WF-2K for submit@debbugs.gnu.org; Wed, 28 Mar 2012 05:46:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCpSd-0003Jw-4J for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 05:46:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCpSW-0004Uz-To for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 05:46:34 -0400 Received: from sam.nabble.com ([216.139.236.26]:43548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCpSW-0004Uh-P8 for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 05:46:28 -0400 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SCpSU-00012V-RI for Bug-coreutils@gnu.org; Wed, 28 Mar 2012 02:46:26 -0700 Message-ID: <33544820.post@talk.nabble.com> Date: Wed, 28 Mar 2012 02:46:26 -0700 (PDT) From: AngusC To: Bug-coreutils@gnu.org Subject: Problems with mkdir -p usage MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: anguscomber@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 28 Mar 2012 08:59:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.1 (-) 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 But mkdir -p myfolder creates a folder called -p and also a folder called myfolder??? Why the strange behaviour? If I do which mkdir - it displays as below: D:\>which mkdir /binaryTools/mkdir So it must be using the Cygwin version? Angus -- View this message in context: http://old.nabble.com/Problems-with-mkdir--p-usage-tp33544820p33544820.html Sent from the Gnu - Coreutils - Discuss mailing list archive at Nabble.com. ------------=_1332947883-3170-1--