On 12/10/21 02:22, Vincent Vermilya wrote: > If DEST directory has a trailing slash in "mv -T --backup=numbered", mv > gets stuck in an infinite loop. This does not happen without the trailing > slash. strace shows renameat2 as the call that gets looped on. Thanks for the bug report. This is due to a Gnulib bug, so I'm cc'ing bug-gnulib. I installed the first three attached patches into Gnulib. The first one should fix the bug there, and the other two are refactoring cleanups. I installed the last two attached patches into coreutils to propagate this fix into coreutils and add a regression test.