pgrep from procps-3.2.6-1 when asking for an exact match with arguments seems to demand an extra space after the argument. See the following sequence.
No space after the f on the commandline $ emacs f& [1] 2072 without extra space $ pgrep -x -f "emacs f" with extra space after f $ pgrep -x -f "emacs f " 2072 Bug or my misunderstanding ? -- Bengt-Arne Fjellner -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/