bug-coreutils
[Top][All Lists]
Advanced

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

Re: poor mv error message


From: Jim Meyering
Subject: Re: poor mv error message
Date: Fri, 03 Aug 2007 16:58:06 +0200

Eric Blake <address@hidden> wrote:
> We probably ought to make this error message smarter:
>
> $ mkdir a
> $ mv a/. b
> mv: cannot move `a/.' to a subdirectory of itself, `b'
>
> Huh?  ./b is not a subdirectory of ./a.  The problem is that rename(2)'s 
> EINVAL
> has two distinct reasons for occuring, either subdirectory recursion (as was
> claimed in the above message), OR when either pathname matches the extended
> regex /(^|\/)\.\.?\/?$/ (as was what really happened).

Good idea.
Would you like to prepare the patch?




reply via email to

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