bug-coreutils
[Top][All Lists]
Advanced

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

bug#20835: rmdir foo/. fails


From: Ed Avis
Subject: bug#20835: rmdir foo/. fails
Date: Wed, 17 Jun 2015 11:18:04 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Stephane Chazelas <stephane.chazelas <at> gmail.com> writes:

>Solaris 10 behaves like linux (EINVAL for ".", EEXIST for "..").
>The rmdir utility there is more explicit:
>
>$ rmdir D/. D/..
>rmdir: directory "D/.": Can't remove current directory or ..

I think that error message would be an improvement on GNU rmdir's current
behaviour.  Although programmers can understand what EINVAL means and look it
up in the POSIX spec, printing 'Invalid argument' is not friendly to those
who are less wizardly.

(That said I would change it to "Can't remove . or ..", since the user did
not ask to remove the current directory.)

-- 
Ed Avis <address@hidden>






reply via email to

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