Strange problem with find and directories
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu May 16 08:08:00 GMT 2013
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
More information about the Cygwin
mailing list