bug-bash
[Top][All Lists]
Advanced

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

Re: cp command will copy to subdirectory without appending /


From: Marc Herbert
Subject: Re: cp command will copy to subdirectory without appending /
Date: Fri, 23 Oct 2009 15:32:33 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

> The problem is dead-simple. You cannot run this command multiple times:
> 
>     cp -R  ./dirfoo  ./dirfoo.backup
> 

Sorry to add yet another (last) off topic message but I must do justice
to GNU cp.  GNU cp actually does support the above thanks to a
(non-standard) option:

     cp -R -T ./dirfoo  ./dirfoo.backup

For details see:  info coreutils "Target Directory"





reply via email to

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