On Feb 7, 2014, at 10:51 AM, Warren Young <war...@etr-usa.com> wrote:
> Here's a better check that doesn't give false positives: > > $ cat <<END > checkfile > #!/bin/sh > if egrep -q '_getgrent(32|64)' "$1" ; then echo $1 ; fi > END > $ find /bin -name \*.exe -exec ./checkfile {} \; The strings(1) call got left out of that test. Here’s a working variant, which tests for getpwent() calls instead: $ cat <<END > checkfile if strings "$1" | egrep -q '^getpwent$' ; then echo $1 ; fi END $ find /bin -name \*.exe -exec sh checkfile {} \; Alas, Vim *does* call this API. Results: /bin/ali.exe /bin/biber.exe /bin/cppcheck.exe /bin/emacs-nox.exe /bin/emacs-w32.exe /bin/emacs-X11.exe /bin/fish.exe /bin/gdb.exe /bin/gvim.exe /bin/joe.exe /bin/mc.exe /bin/nano.exe /bin/otp.exe /bin/pure-pwconvert.exe /bin/tcsh.exe /bin/vim.exe /bin/xdvi-xaw.exe /bin/xemacs-21.4.22.exe /bin/xgettext.exe /bin/ytree.exe -- 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