Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2015 13:06:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-standards@FreeBSD.org
Subject:   [Bug 199466] cp(1) should accept -P without -R as well per POSIX.1-2008 or like GNU cp
Message-ID:  <bug-199466-15@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199466

            Bug ID: 199466
           Summary: cp(1) should accept -P without -R as well per
                    POSIX.1-2008 or like GNU cp
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
               URL: http://pubs.opengroup.org/stage7tc1/utilities/cp.html
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: standards
          Assignee: freebsd-standards@FreeBSD.org
          Reporter: jbeich@FreeBSD.org

2013 edition clarifies the meaning of -P outside of -R context, mainly

  cp [-Pfip] source_file target_file
  cp [-Pfip] source_file... target

  If the -R option was not specified, cp shall take actions based on the type
and contents of the file referenced by the symbolic link, and not by the
symbolic link itself, unless the -P option was specified.

Note, in GNU cp -P (--no-dereference) always worked outside of -R
(--recursive).
http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=c93a607

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-199466-15>