There are a few subtle differences between the BSD cpthat the Mac uses and the GNU of cpmost Linux distributions.
Consider the following snippet man cpfrom a linux window:
-d same as --no-dereference --preserve=links
-P, --no-dereference
never follow symbolic links in SOURCE
--preserve[=ATTR_LIST]
preserve the specified attributes (default: mode,ownership,timestamps), if possible additional attributes: context,
links, xattr, all
, , " , - , , ".
p Mac Linux. d, , .
" , " Mac cp, , , .
, , . man cp Mac:
, -R, .
, , , d R. ( ), . cp, Makefile (, cp ) .
, cp - , Makefile, Makefile.