From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29680: another grep-find anomalous behaviour Date: Fri, 15 Dec 2017 18:49:02 +0200 Message-ID: <83zi6krl6p.fsf@gnu.org> References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1513356617 9966 195.159.176.226 (15 Dec 2017 16:50:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 16:50:17 +0000 (UTC) Cc: 29680@debbugs.gnu.org To: Donald H Locker Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 15 17:50:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePtBc-0002IF-61 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 17:50:12 +0100 Original-Received: from localhost ([::1]:47594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePtBj-000226-F9 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 11:50:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePtBV-0001yX-Op for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 11:50:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePtBS-0006yj-Md for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 11:50:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55537) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePtBS-0006yP-JU for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 11:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ePtBS-0000TV-D4 for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 11:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2017 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29680 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.15133565551762 (code B ref 29680); Fri, 15 Dec 2017 16:50:02 +0000 Original-Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 16:49:15 +0000 Original-Received: from localhost ([127.0.0.1]:35984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePtAh-0000SL-Dm for submit@debbugs.gnu.org; Fri, 15 Dec 2017 11:49:15 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePtAf-0000Rx-KW for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 11:49:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePtAW-0005Ss-HG for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 11:49:08 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePtAW-0005Sk-DH; Fri, 15 Dec 2017 11:49:04 -0500 Original-Received: from [176.228.60.248] (port=1388 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ePtAV-00067c-Pn; Fri, 15 Dec 2017 11:49:04 -0500 In-reply-to: <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> (message from Donald H Locker on Fri, 15 Dec 2017 07:25:33 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:141121 Archived-At: > From: Donald H Locker > Date: Fri, 15 Dec 2017 07:25:33 -0500 > > -*- mode: grep; default-directory: > "c:/workingSVN/2017-08-21-xxxxx-v2g-test-model/Model_withEVSE/" -*- > Grep started at Fri Dec 15 07:12:23 > > find . -type f -name '*.log' -exec grep -nHE 'CurrentDemand' {} \; > /usr/bin/find: paths must precede expression > Usage: /usr/bin/find [path...] [expression] > > Grep exited abnormally with code 1 at Fri Dec 15 07:12:23 Do you have the sub-shell customized to invoke a Unixy shell or something? Windows shells don't support quoting 'like this', so you need to use "*.log" instead. And, depending on which port of GNU Findutils you have installed, even "*.log" could get expanded, even though it's quoted, because Windows Vista changed its interpretation of quoting wrt previous versions of Windows. Also, I wonder how come Emacs doesn't propose to the the command with "+" as it did for me. FWIW, your command (with a different search string) works for me, but it isn't surprising, since in your case it sometimes works and sometimes doesn't. > GNU Emacs 24.5.1 (i686-pc-mingw32) Emacs 24 is quite old. Could you try the latest pretest of Emacs 26, please?