[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#36831: enhance 'directory not empty' message
From: |
Jim Meyering |
Subject: |
bug#36831: enhance 'directory not empty' message |
Date: |
Mon, 29 Jul 2019 00:25:23 -0700 |
On Sun, Jul 28, 2019 at 11:29 PM Assaf Gordon <address@hidden> 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 <address@hidden> 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.