emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-bug-tracker] bug#6405: closed (cp from -MM to -M)


From: GNU bug Tracking System
Subject: [Emacs-bug-tracker] bug#6405: closed (cp from -MM to -M)
Date: Fri, 11 Jun 2010 20:19:01 +0000

Your message dated Fri, 11 Jun 2010 14:18:39 -0600
with message-id <address@hidden>
and subject line Re: bug#6405: cp from -MM to -M
has caused the GNU bug report #6405,
regarding cp from -MM to -M
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
6405: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6405
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: cp from -MM to -M Date: Fri, 11 Jun 2010 14:38:13 -0500
I'm trying to cp -MM to -M. But so far I don't have a way to do it.
Would you please let me know what is the correct way to cp from -MM to
-M?

$ cp -r -- -MM/ -- -M
cp: target `-M' is not a directory
$ ll -go
total 0
drwx------ 2 64 2010-06-11 14:35 -MM

-- 
Regards,
Peng



--- End Message ---
--- Begin Message --- Subject: Re: bug#6405: cp from -MM to -M Date: Fri, 11 Jun 2010 14:18:39 -0600 User-agent: Mutt/1.5.18 (2008-05-17)
Hi Peng,

If you would be so kind could you in the future address these types of
messages to address@hidden instead of bug-coreutils?  The
bug-coreutils address has been changed from "all-discussion" to
"bug-discussion" and along with that change every message here now
opens a bug ticket in the bug tracking system so that we don't lose
track of reported bugs.  The address@hidden address was created for
general discussion that isn't attached to the bug tracking system.
Thanks!

Peng Yu wrote:
> I'm trying to cp -MM to -M. But so far I don't have a way to do it.
> Would you please let me know what is the correct way to cp from -MM to
> -M?
> 
> $ cp -r -- -MM/ -- -M
> cp: target `-M' is not a directory

The first "--" stops further option recognition and processing.  So it
is only needed once.  The second one after the first one has turned
off option processing is therefore recognized as a filename.  Since
you have three files listed (the extra one being "--") then the target
is required to be a directory.

Instead just use one "--".  You wanted to say:

  $ cp -r -- -MM -M

Or traditional usage would use "./" to avoid the first character of
the string from starting with a dash.

  $ cp -r ./-MM ./-M

Since the strings do not start with a dash then they are not
recognized as command option arguments.

Bob


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]