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 10:24:13 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

% mkdir foo
% rmdir foo/.
rmdir: failed to remove ‘foo/.’: Invalid argument
% rmdir --version
rmdir (GNU coreutils) 8.23
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.


I suggest that 'rmdir foo/.' should be equivalent to 'rmdir foo'.
Strangely, 'rmdir foo/..' does work as expected (that is, it fails with
'Directory not empty').

Note that Emacs command completion (in shell-mode) will complete foo to foo/.

-- 
Ed Avis <address@hidden>

reply via email to

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