cp: -r and -R imply -d (coreutils compat)
This commit is contained in:
parent
35465a3f00
commit
ea7645bab6
@ -44,8 +44,9 @@ int cp_main(int argc, char **argv)
|
|||||||
// Soft- and hardlinking don't mix
|
// Soft- and hardlinking don't mix
|
||||||
// -P and -d are the same (-P is POSIX, -d is GNU)
|
// -P and -d are the same (-P is POSIX, -d is GNU)
|
||||||
// -r and -R are the same
|
// -r and -R are the same
|
||||||
|
// -R (and therefore -r) switches on -d (coreutils does this)
|
||||||
// -a = -pdR
|
// -a = -pdR
|
||||||
opt_complementary = "-2:l--s:s--l:Pd:rR:apdR";
|
opt_complementary = "-2:l--s:s--l:Pd:rRd:Rd:apdR";
|
||||||
flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPHL");
|
flags = getopt32(argv, FILEUTILS_CP_OPTSTR "arPHL");
|
||||||
argc -= optind;
|
argc -= optind;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user