On Sun, Jul 22, 2012 at 12:24 PM, Linda Walsh wrote: > Andrey Repin wrote: >> >> Greetings, Linda Walsh! >> >>> I sometimes use "rmdir *" to clean up empty dir's. >> >> >> There's a known issue about difference in Windows and *NIX handling of >> directory removal in many cases. >> I would say, you drop such practice and be more explicit in your actions. > > ---- > You are saying POSIX allows directory removal to behave > differently if it is running on Windows?
Windows is not at all *POSIX* compliant nor will it ever be but the issue doesn't belong to Windows either, the Windows shell will not remove the directory if it contains files. > > I'm not running this in explorer, or cmd.com > I'm running in bash, using rmdir. I'll agree that Cygwin should not rename the directory for later removal if the directory is not empty. The rename occurs because Cygwin cannot remove the directory or file and thus renames it so that when it can it will remove it. -- Earnie -- https://sites.google.com/site/earnieboyd -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple