GNU bug report logs -
#11111
Problems with mkdir -p usage
Previous Next
Reported by: AngusC <anguscomber <at> gmail.com>
Date: Wed, 28 Mar 2012 13:01:02 UTC
Severity: normal
Tags: notabug
Done: Eric Blake <eblake <at> redhat.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11111 in the body.
You can then email your comments to 11111 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#11111
; Package
coreutils
.
(Wed, 28 Mar 2012 13:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
AngusC <anguscomber <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Wed, 28 Mar 2012 13:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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?
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.
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Wed, 28 Mar 2012 15:18:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eric Blake <eblake <at> redhat.com>
:
You have taken responsibility.
(Wed, 28 Mar 2012 15:18:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
AngusC <anguscomber <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 28 Mar 2012 15:18:03 GMT)
Full text and
rfc822 format available.
Message #12 received at 11111-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tag 11111 notabug
thanks
On 03/28/2012 03:46 AM, 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?
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).
>
> 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.
--
Eric Blake eblake <at> redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 26 Apr 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 52 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.