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 22:42:28 +0200 Message-ID: <83vah7soy3.fsf@gnu.org> References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1513370592 29766 195.159.176.226 (15 Dec 2017 20:43:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 20:43:12 +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 21:43:07 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 1ePwoz-0007JW-Sh for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 21:43:05 +0100 Original-Received: from localhost ([::1]:48446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePwp7-0002yd-2i for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Dec 2017 15:43:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePwoz-0002xu-BR for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 15:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePwow-0003km-4J for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 15:43:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55704) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePwow-0003kD-0z for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 15:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ePwov-0001PX-PQ for bug-gnu-emacs@gnu.org; Fri, 15 Dec 2017 15:43:01 -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 20:43: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.15133705655401 (code B ref 29680); Fri, 15 Dec 2017 20:43:01 +0000 Original-Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 20:42:45 +0000 Original-Received: from localhost ([127.0.0.1]:36152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePwof-0001P3-Ej for submit@debbugs.gnu.org; Fri, 15 Dec 2017 15:42:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePwoc-0001On-Ax for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 15:42:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePwoT-0002fK-RG for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 15:42:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePwoT-0002fB-N9; Fri, 15 Dec 2017 15:42:33 -0500 Original-Received: from [176.228.60.248] (port=1616 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ePwoS-0004c8-B6; Fri, 15 Dec 2017 15:42:33 -0500 In-reply-to: (message from Donald H Locker on Fri, 15 Dec 2017 13:46:32 -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:141132 Archived-At: > 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.