Strange problem with find and directories

Lavrentiev, Anton (NIH/NLM/NCBI) [C] lavr@ncbi.nlm.nih.gov
Wed May 15 21:46:00 GMT 2013


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



More information about the Cygwin mailing list