Date: Thu, 02 Oct 2025 09:56:48 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289959] cp(1): Confusing instructions wether -P requires -R Message-ID: <bug-289959-227-Vb9TFFh1Kc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-289959-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289959 --- Comment #1 from Marián Černý <majo-bugs.freebsd.org@cerny.sk> --- This inconsistency has been introduced in commit cp: Make -P work without -R as per POSIX https://github.com/freebsd/freebsd-src/commit/97e13037915c22162f199461f56951793d669f57 So the note that -P is ignored unless -R is specified should be rephrased. Note that the following sentence follows: > In addition, these options override each other and the command's actions are determined by the last one specified. So maybe the following fix would work: > The -H and -L options are ignored unless the -R option is specified. > In addition, the options -H, -L and -P override each other and the > command's actions are determined by the last one specified. (Tested with `cp -P -H /tmp/symlink /tmp/copy`... it does not result in symlink.) See also: https://reviews.freebsd.org/D30012 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199466 -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289959-227-Vb9TFFh1Kc>
