bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36831: enhance 'directory not empty' message


From: Paul Eggert
Subject: bug#36831: enhance 'directory not empty' message
Date: Thu, 1 Aug 2019 15:58:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

Thanks, that's better, but we're still missing some opportunities for 
improvement.

>     mv: cannot move 'A' to 'B/A': Target directory not empty

This should be "Destination" not "Target". (A target directory is something different; this is merely a destination directory.) Similar changes need to be made uniformly throughout the patch.


> +** Improvements
> +
> +  rm now prints clearer error messages when a failure relates to the

You meant "mv" not "rm".

Come to think of it, the same improvement should be made to ln, cp, install and shred. Basically, to any program that uses 'rename' or 'link' or similar syscalls, and which reports an error if the syscall fails.

> +static char*

Space before "*".

> +strerror_target (int e)

Change name to "strerror_dest" or something like that, to be consistent with the terminology "destination" rather than "target".

This function should return NULL instead of aborting when the errno value is inapplicable. That way, its callers need not hardcode which errno values it handles.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]