bug-coreutils
[Top][All Lists]
Advanced

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

bug#6405: cp from -MM to -M


From: Stefano Lattarini
Subject: bug#6405: cp from -MM to -M
Date: Fri, 11 Jun 2010 22:06:22 +0200
User-agent: KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.4; i686; ; )

At Friday 11 June 2010, 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
The first `--' stops option processing, and so the second `--' is 
interpreted like a file path, not like an option.
> cp: target `-M' is not a directory
> $ ll -go
> total 0
> drwx------ 2 64 2010-06-11 14:35 -MM
> 
Simply use:
  $ cp -r -- -MM/ -M
or:
  $ cp -r ./-MM/ ./-M

Stefano





reply via email to

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