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