Based on the documentation, I would have expected an error in this case. mkdir a a/1 b b/2 mv -Tn a b
Exit status is zero. The only relevant system call in the strace output is this one: renameat2(AT_FDCWD, "a", AT_FDCWD, "b", RENAME_NOREPLACE) = -1 EEXIST (File exists) Seen with: coreutils-9.7-9.fc43.x86_64 Thanks, Florian
