This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Strange problem with find and directories
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 15 May 2013 21:46:19 +0000
- Subject: Strange problem with find and directories
Hello,
I'm using 32-bit Cygwin 1.7.18. The problem I'm seeing can
be replayed with this sequence of commands:
-- begin --
$ mkdir dir
$ ls -d dir
dir
$ find . -type d -name dir -print
./dir
$ find . -type d -name dir -exec rm -rf {} \;
find: './dir': Not a directory
-- end --
The same at either Windows-native drive (/cygwin/c/...)
or a Cygwin mount (such as /home/$USER).
BTW, dir is actually gone, but what was the fuss about?
Thanks,
Anton Lavrentiev
Contractor NIH/NLM/NCBI
--
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