On Sun, Jul 28, 2019 at 11:29 PM Assaf Gordon <assafgor...@gmail.com> wrote: ... > What do others think? If this is a desired improvement, I'll finish the > patch with news/tests/etc. ... > [PATCH] mv: improve ENOTEMPTY/EEXIST error message > > Suggested by Alex Mantel <alexmante...@gmail.com> in > https://bugs.gnu.org/36831 . > > $ mkdir A B B/A > $ touch A/bar B/A/foo > > Before: > > $ mv A B > mv: cannot move 'A' to 'B/A': Directory not empty > > After: > > $ mv A B > mv: cannot move 'A' to 'B/A': Target directory not empty > > * src/copy.c (copy_internal): Add special handling for ENOTEMPTY/EEXIST. > TODO: NEWS, tests.
I like it. Thank you.