This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]