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