I don't get why echo prints empty line (latest cygwin version):
~/tmp >find mydor/ -name "*php"
mydor/es/c/packags.php
mydor/etns/inx.php
mydor/pacepors.php
mydor/XAE.php
~/tmp >find mydor/ -name "*php" -exec echo {} \;
~/tmp >find mydor/ -name "*php" -exec echo "{}" \;
~/tmp >find mydor/ -name "*php" -exec echo '{}' \;
~/tmp >
~/tmp >find --version
find (GNU findutils) 4.5.11
Packaged by Cygwin (4.5.11-1)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)
find
andecho
, for example from which packages they come and what are their versions.C:\cygwin\bin\mintty.exe
and base pathC:\cygwin\bin
. More strange: this works:find mydor/ -name "*php" -exec cat {} \;
echo
command isfind
calling? What doesbash -c 'type -a echo'
tell you? The first non-builtin one would be the one it calls.find
was executed. But as soon as I specified the path, it worked.