From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Donald H Locker Newsgroups: gmane.emacs.bugs Subject: bug#29680: another grep-find anomalous behaviour Date: Fri, 15 Dec 2017 13:46:32 -0500 Message-ID: References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1513364149 9302 195.159.176.226 (15 Dec 2017 18:55:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 18:55:49 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 Cc: 29680@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 15 19:55:43 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 1ePv93-0001sG-KI for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 19:55:41 +0100 Original-Received: from localhost ([::1]:48194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePv99-0008KX-8D for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 13:55:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePv0j-0001cY-GU for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 13:47:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePv0g-0006kv-AA for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 13:47:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePv0g-0006kC-67 for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 13:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ePv0f-0005AC-P4 for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 13:47:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Donald H Locker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2017 18:47:01 +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.151336361019831 (code B ref 29680); Fri, 15 Dec 2017 18:47:01 +0000 Original-Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 18:46:50 +0000 Original-Received: from localhost ([127.0.0.1]:36059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePv0U-00059n-Kk for submit@debbugs.gnu.org; Fri, 15 Dec 2017 13:46:50 -0500 Original-Received: from resqmta-ch2-04v.sys.comcast.net ([69.252.207.36]:40264) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePv0T-00059a-Gw for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 13:46:49 -0500 Original-Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id Pv09er8BKjYE9Pv0NekAiU; Fri, 15 Dec 2017 18:46:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1513363603; bh=Ry02/2yoVrF+NTB88Xa2rt+4d8bVg6w0CALI4YTyBB4=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=Wiv+wjrVbgD+cVwRwoVb3mBnzeTi3q9pllbpuTRFX12Nb0AMOvWuoW74WhO0fgG6E MHbBxSc+PUDRE1E3LPL7y36ahEa+karpxWrbf1MZaCv0xDBHFmuW146diYlqMH0OUm uJ8BBxJ5xsYD+n52LOkTn2vtKAHwM/TGiC3AkonBYZbJPEEPaAH5ZudM3744siPW5O 8nTqgJpEriXGfO1IcO0kbnLh/SDe2cMvbEod93Y3nt7XfRrw/pd+mlwmdyutCALdCV caDoSS2wWR7deCn/DS+NxRpROOVoa5Of5A0TlGtbYJPuoqnk8ppZ6hNUnJn2cxL84Q ctDIZlO2ZrJPA== Original-Received: from [192.168.6.129] ([66.79.197.2]) by resomta-ch2-03v.sys.comcast.net with SMTP id Pv0CeWmmlc9eOPv0Eevlb4; Fri, 15 Dec 2017 18:46:41 +0000 In-Reply-To: <83zi6krl6p.fsf@gnu.org> Content-Language: en-US X-CMAE-Envelope: MS4wfIsgiP/r2py4zdmkWELsJJDGx9+z3pBC7rJjojh36EKoF4ov04mwOWQUw5d+Rza+2+Jp96BhOG5wogdp89F1sQuosbXdRW6cBPRQWcwwhpqxzwlgaFXE zHQdGk3hikChwO9eIpmTHaFYaPbez0MBZeVhqrg7GHvEauTMYjBj+RmvbCRlnhVX9+FA7lhsxeN2VA== 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:141128 Archived-At: Thank you, Eli. The underlying "unixy" environment is cygwin; updated a few weeks ago. (Windows command tools are junk.) The behaviour is very repeatable, though - at one level in the directory hierarchy, the command fails to even execute find; at one higher level in the directory hierarchy, the command succeeds and finds the sought strings in the file. Note that in the Model_withEVSE directory, "find ." doesn't seem to think that '.' is a directory, while it is perfectly happy when started in the directory above that. (word wrap seems to have made those lines hard to see clearly.) I'll see if I can drag myself away from Emacs-24. Donald. -- *Plain Text* email -- it's an accessibility issue () no proprietary attachments; no html mail /\ On 15-Dec-2017 11:49, Eli Zaretskii wrote: >> 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? >