This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Strange problem with find and directories
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 16 May 2013 10:08:07 +0200
- Subject: Re: Strange problem with find and directories
- References: <5F8AAC04F9616747BC4CC0E803D5907D0AF7ABC6 at MLBXv04 dot nih dot gov> <5F8AAC04F9616747BC4CC0E803D5907D0AF7ABE9 at MLBXv04 dot nih dot gov> <5F8AAC04F9616747BC4CC0E803D5907D0AF7ACA6 at MLBXv04 dot nih dot gov>
- Reply-to: cygwin at cygwin dot com
On May 16 01:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> $ strace --help
> ...
> -V, --version output version information and exit
> ...
>
> So man page needs to be more *case-sensitive*. Also, it looks like -f
Dunno where the man page error stems from, but the official documentation
is correct: http://cygwin.com/cygwin-ug-net/using-utils.html#strace
> actually turns off the child tracing
This is documented in http://cygwin.com/cygwin-ug-net/using-utils.html#strace
as well:
-f, --trace-children trace child processes (toggle - default true)
>
> Finally, I had strace running without the -f switch, and it finished
> successfully, showing the following sequence in the trace file leading
> to errno 20 (ENOTDIR):
> [...]
> 28 86781 [main] find 5420 open: -1 = open(/home/lavr/test/dir, 0x30C000), errno 20
>
> Clearly, find would be happy to see ENOENT there (and it's actually what should have
> been flagged in the absence of the directory after its removal, as ENOTDIR is
> not applicable in such case).
Fixed in CVS. You now get
$ mkdir dir
$ find . -name dir -type d -exec rm -rf '{}' \;
find: `./dir': No such file or directory
as on Linux.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
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