bug#36831: enhance 'directory not empty' message

2019-07-29 Thread Paul Eggert
On 7/29/19 1:28 AM, Assaf Gordon wrote: + if (rename_errno == ENOTEMPTY || rename_errno == EEXIST) +{ + error (0, 0, _("cannot move %s to %s: Target directory not empty"), + quoteaf_n (0, src_name), quoteaf_n (1, dst_name)); Although this is an

bug#36831: enhance 'directory not empty' message

2019-07-29 Thread Jim Meyering
On Sun, Jul 28, 2019 at 11:29 PM Assaf Gordon 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 in > https://bugs.gnu.org/36831 . > > $ mkdir

bug#36831: enhance 'directory not empty' message

2019-07-29 Thread Assaf Gordon
Hello, On Sun, Jul 28, 2019 at 08:58:59PM +0200, Alex Mantel wrote: [...] > Ah, the target directory does exist! Hmm... But i'd like the message to be > like: > >    $ mv thing/ ../things >    mv: cannot move 'thing' to '../things/things': Targetdirectory not empty > >