GNU bug report logs - #6405
cp from -MM to -M

Previous Next

Package: coreutils;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Fri, 11 Jun 2010 19:39:02 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: bug-coreutils <at> gnu.org
Cc: Peng Yu <pengyu.ut <at> gmail.com>
Subject: bug#6405: cp from -MM to -M
Date: Fri, 11 Jun 2010 22:06:22 +0200
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




This bug report was last modified 15 years and 35 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.