Michael Forney f4b9b966cf cp: Default to -P when -R is specified
POSIX only specifies the -H, -L, and -P options for use with -R, and
the default is left to the implementation. Without -R, symlinks must
be followed.

Most implementations use -P as the default with -R, which makes sense
to me as default behavior (the source and destination trees are the same).

Since we use the same code for -R and without it, and we allow -H, -L,
and -P without -R, set the default based on the presence of -R. Without
it, use -L as before, as required by POSIX, and with it, use -P to match
the behavior of other implementations.
2019-12-21 21:26:19 -08:00
..
2019-12-21 21:26:19 -08:00
2015-02-11 01:17:21 +00:00
2015-12-21 14:13:36 +00:00
2015-09-30 19:44:10 +01:00
2014-11-17 16:48:34 +00:00
2015-10-26 16:53:28 +00:00
2016-07-09 10:09:50 +01:00
2014-11-17 16:48:34 +00:00
2019-04-16 17:41:39 -07:00
2014-11-17 16:48:34 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2016-02-24 10:15:16 +00:00
2015-09-30 19:44:10 +01:00
2015-03-17 11:24:49 +01:00
2015-03-17 11:24:49 +01:00
2015-01-25 17:48:11 +00:00