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 <e...@waniasset.com>




Reply via email to