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: Mon, 18 Dec 2017 07:35:22 -0500 Message-ID: <8b7fa7fd-9693-e2de-4eb8-84bcbbe4f427@comcast.net> References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> <83vah7soy3.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 1513600460 19663 195.159.176.226 (18 Dec 2017 12:34:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Dec 2017 12:34:20 +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 Mon Dec 18 13:34:16 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 1eQucZ-0004hk-55 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Dec 2017 13:34:15 +0100 Original-Received: from localhost ([::1]:58254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQueX-0004m0-GO for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Dec 2017 07:36:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQueN-0004kH-Tr for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 07:36:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQueI-0006Zg-Sd for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 07:36:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQueI-0006ZV-OV for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 07:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eQueI-0006ZB-Fs for bug-gnu-emacs@gnu.org; Mon, 18 Dec 2017 07:36:02 -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: Mon, 18 Dec 2017 12:36: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.151360054425216 (code B ref 29680); Mon, 18 Dec 2017 12:36:02 +0000 Original-Received: (at 29680) by debbugs.gnu.org; 18 Dec 2017 12:35:44 +0000 Original-Received: from localhost ([127.0.0.1]:39810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQudy-0006Yd-MV for submit@debbugs.gnu.org; Mon, 18 Dec 2017 07:35:43 -0500 Original-Received: from resqmta-ch2-04v.sys.comcast.net ([69.252.207.36]:51762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQudw-0006YP-PH for 29680@debbugs.gnu.org; Mon, 18 Dec 2017 07:35:41 -0500 Original-Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id QudceuoNjjYE9QudreqCMG; Mon, 18 Dec 2017 12:35:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1513600535; bh=2M2Y9fZfSlvrguWuPZNFrUL2oDvbxrTb6PLOkh25mY4=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=PIsgkod002QlaCMfib3oiSXrF5zbbc7wgd7V8BOtZdCY4RZXovg3uLVtYAnIq16ZI +Knjl5bXWyVjT2W1zxGUBWIzmtZkHGH38Ky59eLeTje+yocywcCIkfXshMCz459bNN mTdM7FeTppl2nGsTLVGmOtzjoff1gtUqXbFnPCGs4IKGCMKYAkBXqdhvyYu0LT5S94 k6nWVR3CH0HtuNvK5h31OIY3MN7k1FYSivZLLR8OGklekgoU8ZDouf7ExIsALAAjaC y1JXCIhaQcn5nR9j2CpKTMqx46xiepcYZbG5gkCFLXVcV6CTuYSGRny7XKnafnqVL1 PlSIuadp0Ntsg== Original-Received: from [192.168.6.129] ([66.79.197.2]) by resomta-ch2-03v.sys.comcast.net with SMTP id Qudfei1EPc9eOQudiezzw4; Mon, 18 Dec 2017 12:35:32 +0000 In-Reply-To: <83vah7soy3.fsf@gnu.org> Content-Language: en-US X-CMAE-Envelope: MS4wfI6I/J90MoiHORZeAZJQ0ouMinwupIUTjeoTvofB8KZoi5Op55ynIadfDjLOLfI/gVQyCFkhqzQm48cj6O6PxtTR+y24JtVe7/7mBJ3mvBfErq3Y8eXW sqvyTapmM21x2pTbx1hZF2dauzIpY/j08fcxGwJDodTotOqamf/l24vVu6oUvYMjHK4PWPej8h0ytA== 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:141215 Archived-At: It would appear that quoting of the '*.log' part of the command is at fault. Changing the line from -name '*.log' to -name \\*.log allows the find to proceed normally. There are several files with .log extensions in the directory from which the find-grep fails. To answer the other comments, televant customisations (all in (custom-set-variables ...)) are: ;; ignore line-wraps, please, in the following. in my .emacs, each is ;; really all on one line and I haven't figured out all of Thunderbird's ;; options yet '(explicit-shell-file-name "c:/cygwin64/bin/bash") '(exec-path (quote ("C:/cygwin64/bin" "C:/Program Files/Common Files/Microsoft Shared/Microsoft Online Services" "C:/Program Files (x86)/Common Files/Microsoft Shared/Microsoft Online Services" "C:/Windows/system32" "C:/Windows" "C:/Windows/System32/Wbem" "C:/Windows/System32/WindowsPowerShell/v1.0/" "C:/Program Files/Intel/WiFi/bin/" "C:/Program Files/Common Files/Intel/WirelessCommon/" "C:/Program Files/TortoiseSVN/bin" "c:/Users/dlocker/AppData/Roaming/local/bin/emacs-24.5-bin-i686-mingw32/libexec/emacs/24.5/i686-pc-mingw32" "c:/ProgramData/Oracle/Java/javapath"))) '(grep-command "grep -nHE ") '(grep-find-command (quote ("find . -type f -exec grep -nHE {} \\;" . 32))) -- *Plain Text* email -- it's an accessibility issue () no proprietary attachments; no html mail /\ On 15-Dec-2017 15:42, Eli Zaretskii wrote: >> Cc: 29680@debbugs.gnu.org >> From: Donald H Locker >> Date: Fri, 15 Dec 2017 13:46:32 -0500 >> >> The underlying "unixy" environment is cygwin; updated a few weeks ago. > > What customizations do you have to go with that setup? Any > customizations of shell-file-name or similar variables? > >> 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. > > It's hard to reason about your case without knowing which files are > present in each directory. Would you mind to concoct a small test > case, where all directories and files in the tree to be searched by > 'find' are explicitly spelled out? > >> Note that in the Model_withEVSE directory, "find ." doesn't seem to >> think that '.' is a directory > > I think your interpretation of the error message is mistaken. It says > "paths must precede expression", but that's because somehow '*.log' is > expanded into more than a single argument. I suspect that the command > works in a directory with no files whose names match *.log, and > doesn't work where there are such files. So I'd suggest to continue > looking into the quoting issue. One possibility is to replace 'find' > with a program or a batch file which will just echo its command-line > arguments, and then see how Emacs invokes it. >