(do_copy): When the force and backup options have been
authorJim Meyering <jim@meyering.net>
Wed, 19 Jun 1996 01:59:12 +0000 (01:59 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Jun 1996 01:59:12 +0000 (01:59 +0000)
commit6099222717e97badb90a01ca948a2482f9177038
tree3b0317e35a07e98034312912f63f35a93424c8d1
parent608e78053617c4ea1151b655b6d394d442b36c28
(do_copy): When the force and backup options have been
specified and the source and destination are the same name for an
existing, regular file, convert the user's command, e.g.
`cp --force --backup foo foo' to `cp --force foo fooSUFFIX'
where SUFFIX is determined by any version control options used.
At urging of (most recently) Karl Berry.
src/cp.c