diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-06-15 18:17:11 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-06-15 18:17:11 +0000 |
commit | 89b9d338ebec3802718f7f9afa0d3688d77a35e4 (patch) | |
tree | 54b1b47ee34f511ba1d925c83f0b496fb1d1eeb0 /bin/cp | |
parent | 06fc53a56151328e105eed391cba9ad908a75a7e (diff) |
the last of -f or -i is the lucky winner. problem noticed by jan stary.
text copied from mv, as noticed by otto.
Diffstat (limited to 'bin/cp')
-rw-r--r-- | bin/cp/cp.1 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/bin/cp/cp.1 b/bin/cp/cp.1 index 82dd68254b0..4f0e4165885 100644 --- a/bin/cp/cp.1 +++ b/bin/cp/cp.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cp.1,v 1.32 2010/09/03 09:53:20 jmc Exp $ +.\" $OpenBSD: cp.1,v 1.33 2011/06/15 18:17:10 tedu Exp $ .\" $NetBSD: cp.1,v 1.9 1995/07/25 19:36:45 jtc Exp $ .\" .\" Copyright (c) 1989, 1990, 1993, 1994 @@ -33,7 +33,7 @@ .\" .\" @(#)cp.1 8.3 (Berkeley) 4/18/94 .\" -.Dd $Mdocdate: September 3 2010 $ +.Dd $Mdocdate: June 15 2011 $ .Dt CP 1 .Os .Sh NAME @@ -78,8 +78,6 @@ The options are as follows: For each existing destination pathname, remove it and create a new file, without prompting for confirmation, regardless of its permissions. -This option overrides any use of -.Fl i . .It Fl H If the .Fl R @@ -139,6 +137,14 @@ or instead. .El .Pp +The last of any +.Fl f +or +.Fl i +options is the one which affects +.Nm cp Ns 's +behavior. +.Pp For each destination file that already exists, its contents are overwritten if permissions allow, but its mode, user ID, and group ID are unchanged. |