From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: 24.5; find-grep not finding a file or missing the grep Resent-From: Donald H Locker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Dec 2017 20:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29680 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29680@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15131117399996 (code B ref -1); Tue, 12 Dec 2017 20:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Dec 2017 20:48:59 +0000 Received: from localhost ([127.0.0.1]:58982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOrU2-0002bA-NF for submit@debbugs.gnu.org; Tue, 12 Dec 2017 15:48:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOrIk-0002Hk-7Z for submit@debbugs.gnu.org; Tue, 12 Dec 2017 15:37:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOrIc-0000AC-Ub for submit@debbugs.gnu.org; Tue, 12 Dec 2017 15:37:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60476) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eOrIc-0000A8-Qp for submit@debbugs.gnu.org; Tue, 12 Dec 2017 15:37:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOrIb-0006HA-8A for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 15:37:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOrIX-00008Z-S3 for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 15:37:09 -0500 Received: from resqmta-ch2-05v.sys.comcast.net ([2001:558:fe21:29:69:252:207:37]:38534) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eOrIX-00007K-Iq for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 15:37:05 -0500 Received: from resomta-ch2-06v.sys.comcast.net ([69.252.207.102]) by resqmta-ch2-05v.sys.comcast.net with ESMTP id OrIReElBjIiQDOrIVenjur; Tue, 12 Dec 2017 20:37:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1513111023; bh=dAlpk7n/7pN55u6R957i9ZeIt3ViWh4p9mGbsKv6iPg=; h=Received:Received:To:From:Subject:Message-ID:Date:MIME-Version: Content-Type; b=OZ9eZDRFwGHQlmqugOAzwnem7wk+v4vuHW4ZC9g59s7GZSykD7hzDj5K1y1iz3lU6 ZCMCqIekGxTpfKf3wYBJvpWI3+jaVNYqyk5ouXt29OhZGIU6sEGMsybDctIxTT/u6F xy1S150nEUT65PhBJIFAEd1OEYqUezl/m9Ga94HyKtUF6U40fj6K0V9p5RqeEVPJW3 /LpuT56ypaYWyS/ZNHde15MsV+Aos/sNiyTjpeGVdfL/ZnnZ+iAxt9qvKXBUzoQRbq gxw99WN+OFDZk4UBr+oUeqZ9zh3BvTNjdfbJj4abOLi1Gv9IIWimnofnkTUzeN8upt vI2OYU0MUJYyA== Received: from [192.168.6.129] ([66.79.197.2]) by resomta-ch2-06v.sys.comcast.net with SMTP id OrILedq0mCxytOrIOerYBA; Tue, 12 Dec 2017 20:37:00 +0000 From: Donald H Locker Message-ID: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> Date: Tue, 12 Dec 2017 15:36:54 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfAO/TVDNuAKWLA6bg+eG3T5DPwMwr05W9lM3I0LjMxcqyz0gBebDCRqEmBCKw9+v5IMptBGEylqsH6YFlL9aAox9O6oOxR+8Kg7pe1sgoXh92BXG7wnY XrqZitC0Oy5uispdEMKYBMTBPxhbaXfsyhycJFlcFWOoFnQuxvrb/qO4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Mailman-Approved-At: Tue, 12 Dec 2017 15:48:58 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) The particular bug is not easy to reproduce (yet) and I don't have an example I can actually send. `M-x find-grep` (aka `grep-find`), then: find . -type f -name '*-2017-12-12_09.22.57.log' -exec grep -nHE 'ERROR:' {} \; finds a number of ERROR: lines in various `.log` files at various depths in the directory hierarchy where I am working. One particular file with an 'ERROR:' ./PFF/PFF/PFF.bat-2017-12-12_09.22.57.log is not found unless I change down a directory level, starting in `./PFF`, or unless the parent directory name is [at least] one character longer or shorter (but see below.) e.g. the ERROR: line is found in ./PFF/PFFm/PFF.bat-2017-12-12_09.22.57.log or in ./PFF/PFF-/PFF.bat-2017-12-12_09.22.57.log but never in ./PFF/PFF/PFF.bat-2017-12-12_09.22.57.log whether the original `./PFF/PFF` directory is renamed or copied to a [longer-named] parent (when copied, I have both `./PFF/PFF` and `./PFF/PFFx` directories.) Then it gets weird - if I have a copy of the `./PFF/PFF` directory named `./PFF/PF` or `./PFF/P`, the `ERROR:` lines in both copies of the `.log` file are found (one in each of the directories;) if the duplicate directory is named with three or more characters (e.g. `./PFF/PFM`) the original `./PFF/PFF` log file is not found (or grepped; not sure yet which.) Simply creating a `./PFF/PF` directory does not work; it has to be populated with [at least some] of the same files found in `./PFF/PFF` It might be worth mentioning that the `./PFF` directory does have two other subdirs in addition to `./PFF/PFF` (`./PFF/PFF_FILE_HANDLING` and `./PFF/PFF_CAPTURE_FF`) so it doesn't appear that the problem is that `./PFF/PFF` is all alone. find . -type f -name '*-2017-12-12_09.22.57.log' -exec grep -nHE 'ERROR:' {} \; at the command line works as expected. In GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=/c/usr --host=i686-pc-mingw32' Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Dired by date Minor modes in effect: shell-dirtrack-mode: t cscope-minor-mode: t show-paren-mode: t savehist-mode: t desktop-save-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Recent messages: Wrote c:/workingSVN/cr17935-dolly-port-1/testing/VectorCAST/openecu-unit-test/environment/PFF/PFF/PFF.bat Directory has changed on disk; type g to update Dired Mark saved where search started Mark set Deleting...done Mark saved where search started Mark set Mark saved where search started Making completion list... [6 times] Note: file is write protected Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils find-dired misearch multi-isearch pp apropos cus-edit wid-edit dired-aux help-mode shell pcomplete csharp-mode js advice byte-opt bytecomp byte-compile cl-extra cconv imenu thingatpt arc-mode archive-mode nroff-mode ruler-mode mule-util hl-line hexl eldoc help-fns vc-git python json make-mode cperl-mode info nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs conf-mode bat-mode vc-hg sh-script smie executable sgml-mode vc-dispatcher vc-svn dired xcscope easymenu saveplace edmacro kmacro paren savehist grep compile comint ansi-color ring desktop frameset cl-loaddefs cl-lib cus-start cus-load time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32notify w32 multi-tty emacs) Memory information: ((conses 8 897528 60889) (symbols 32 32816 0) (miscs 32 22333 927) (strings 16 76656 18285) (string-bytes 1 2399020) (vectors 8 34189) (vector-slots 4 1012343 26868) (floats 8 734 707) (intervals 28 141955 4946) (buffers 508 605)) -- *Plain Text* email -- it's an accessibility issue () no proprietary attachments; no html mail /\ From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> In-Reply-To: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> Resent-From: Donald H Locker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2017 16:23: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 To: 29680@debbugs.gnu.org Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.151335496731960 (code B ref 29680); Fri, 15 Dec 2017 16:23:02 +0000 Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 16:22:47 +0000 Received: from localhost ([127.0.0.1]:35976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePsl4-0008JQ-Nc for submit@debbugs.gnu.org; Fri, 15 Dec 2017 11:22:47 -0500 Received: from resqmta-po-03v.sys.comcast.net ([96.114.154.162]:35880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePp3l-0007GE-NR for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 07:25:50 -0500 Received: from resomta-po-12v.sys.comcast.net ([96.114.154.236]) by resqmta-po-03v.sys.comcast.net with ESMTP id Pp3be5WX6sianPp3geDW1n; Fri, 15 Dec 2017 12:25:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1513340744; bh=cy3zh2+C5GDJIsFBpl+Kp5mUumficaP+AHr8nqRa9jI=; h=Received:Received:To:From:Subject:Message-ID:Date:MIME-Version: Content-Type; b=LOmrt70aZqG2LKEDzhtdAQG7vhZHSkRU8jBKGR761y9vAcvx6hswtGXvct/M1UiEp PuaqRYRvvzl05ff5cyggECcpiFcnGGFVRWyb8F6nbmn/XCrlYLWj4DF3NqouB9+4my Cdh6MX/rHo15WdLukC2dtD60s+KU/fKeEwUaBuPTmr54YFLlE6l5OrI3m60PhZWUdK dO15k+UgISsYRqQXRzYh1ieH2eECKUMZyOQEp1ofg6f1M2L033vUeqqFl7ZJCQMpJc ggIHLp8SonfhyaIEVoJ9oVRKhDOi5QQ+sjLNsrgMtmhc5cJyq7xOvyRVpXPL/KPAjn ZFSYUO5qdihLQ== Received: from [192.168.6.129] ([66.79.197.2]) by resomta-po-12v.sys.comcast.net with SMTP id Pp3Xe50rmWFyCPp3ZeP1Ec; Fri, 15 Dec 2017 12:25:42 +0000 From: Donald H Locker Message-ID: <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> Date: Fri, 15 Dec 2017 07:25:33 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfFI9wA2dAspPmIHO6bHHjS2TjHPQNyE3Qq2kM/Kbd8b9l/DL7b+TQcY2UAnerOOJOXC/oUlBvuET5VYvdCiThLYQ+o9UmLg0RXjhMiJmggpQy+bPZBPs R9FBVyld7AzlHSxFrBPdMy8oN3yeUW8TRvnPUzhWkIM21MWh2PokLLXE X-Spam-Score: -0.0 (/) X-Mailman-Approved-At: Fri, 15 Dec 2017 11:22:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) -*- 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 ######### from the next higher directory - works as expected ######### -*- mode: grep; default-directory: "c:/workingSVN/2017-08-21-xxxxx-v2g-test-model/" -*- Grep started at Fri Dec 15 07:12:23 find . -type f -name '*.log' -exec grep -nHE 'CurrentDemand' {} \; [lines found] ... Grep finished (matches found) at Fri Dec 15 07:20:57 ######### notes ########## Command (copied and pasted from the emacs grep buffer) works correctly from bash (cygwin-64, mintty) in either of those directories. GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11 on LEG570 Windows-7, 64-bit, patched up-to-date Donald. -- *Plain Text* email -- it's an accessibility issue () no proprietary attachments; no html mail /\ From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour 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 To: Donald H Locker Cc: 29680@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.15133565551762 (code B ref 29680); Fri, 15 Dec 2017 16:50:02 +0000 Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 16:49:15 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Fri, 15 Dec 2017 18:49:02 +0200 Message-Id: <83zi6krl6p.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> (message from Donald H Locker on Fri, 15 Dec 2017 07:25:33 -0500) References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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? From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Dec 2017 16:53: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 To: dhlocker@comcast.net Cc: 29680@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.15133567482036 (code B ref 29680); Fri, 15 Dec 2017 16:53:02 +0000 Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 16:52:28 +0000 Received: from localhost ([127.0.0.1]:35989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePtDn-0000Wm-US for submit@debbugs.gnu.org; Fri, 15 Dec 2017 11:52:28 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePtDm-0000WZ-4Q for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 11:52:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePtDd-0002DL-WC for 29680@debbugs.gnu.org; Fri, 15 Dec 2017 11:52:21 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePtDd-0002D6-Rl; Fri, 15 Dec 2017 11:52:17 -0500 Received: from [176.228.60.248] (port=1393 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ePtDd-0006gj-6n; Fri, 15 Dec 2017 11:52:17 -0500 Date: Fri, 15 Dec 2017 18:52:17 +0200 Message-Id: <83y3m4rl1a.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <83zi6krl6p.fsf@gnu.org> (message from Eli Zaretskii on Fri, 15 Dec 2017 18:49:02 +0200) References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 15 Dec 2017 18:49:02 +0200 > From: Eli Zaretskii > Cc: 29680@debbugs.gnu.org > > Also, I wonder how come Emacs doesn't propose to the the command with > "+" as it did for me. I meant to write "propose to end the command". Sorry. From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour 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 To: Eli Zaretskii Cc: 29680@debbugs.gnu.org Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.151336361019831 (code B ref 29680); Fri, 15 Dec 2017 18:47:01 +0000 Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 18:46:50 +0000 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 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 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== 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 References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> From: Donald H Locker Message-ID: Date: Fri, 15 Dec 2017 13:46:32 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <83zi6krl6p.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfIsgiP/r2py4zdmkWELsJJDGx9+z3pBC7rJjojh36EKoF4ov04mwOWQUw5d+Rza+2+Jp96BhOG5wogdp89F1sQuosbXdRW6cBPRQWcwwhpqxzwlgaFXE zHQdGk3hikChwO9eIpmTHaFYaPbez0MBZeVhqrg7GHvEauTMYjBj+RmvbCRlnhVX9+FA7lhsxeN2VA== X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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? > From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour 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 To: Donald H Locker Cc: 29680@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.15133705655401 (code B ref 29680); Fri, 15 Dec 2017 20:43:01 +0000 Received: (at 29680) by debbugs.gnu.org; 15 Dec 2017 20:42:45 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Fri, 15 Dec 2017 22:42:28 +0200 Message-Id: <83vah7soy3.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Donald H Locker on Fri, 15 Dec 2017 13:46:32 -0500) References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > 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. From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour 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 To: Eli Zaretskii Cc: 29680@debbugs.gnu.org Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.151360054425216 (code B ref 29680); Mon, 18 Dec 2017 12:36:02 +0000 Received: (at 29680) by debbugs.gnu.org; 18 Dec 2017 12:35:44 +0000 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 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 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== 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 References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> <83vah7soy3.fsf@gnu.org> From: Donald H Locker Message-ID: <8b7fa7fd-9693-e2de-4eb8-84bcbbe4f427@comcast.net> Date: Mon, 18 Dec 2017 07:35:22 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <83vah7soy3.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfI6I/J90MoiHORZeAZJQ0ouMinwupIUTjeoTvofB8KZoi5Op55ynIadfDjLOLfI/gVQyCFkhqzQm48cj6O6PxtTR+y24JtVe7/7mBJ3mvBfErq3Y8eXW sqvyTapmM21x2pTbx1hZF2dauzIpY/j08fcxGwJDodTotOqamf/l24vVu6oUvYMjHK4PWPej8h0ytA== X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. > From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Dec 2017 16:22: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 To: Donald H Locker Cc: 29680@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.151361408413028 (code B ref 29680); Mon, 18 Dec 2017 16:22:01 +0000 Received: (at 29680) by debbugs.gnu.org; 18 Dec 2017 16:21:24 +0000 Received: from localhost ([127.0.0.1]:40753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQyAO-0003O4-0E for submit@debbugs.gnu.org; Mon, 18 Dec 2017 11:21:24 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQyAM-0003Nr-Oo for 29680@debbugs.gnu.org; Mon, 18 Dec 2017 11:21:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQyAD-0001H4-Gm for 29680@debbugs.gnu.org; Mon, 18 Dec 2017 11:21:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQyAD-0001Gz-E9; Mon, 18 Dec 2017 11:21:13 -0500 Received: from [176.228.60.248] (port=1311 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eQyAC-0002mn-QR; Mon, 18 Dec 2017 11:21:13 -0500 Date: Mon, 18 Dec 2017 18:21:21 +0200 Message-Id: <83r2rsovlq.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <8b7fa7fd-9693-e2de-4eb8-84bcbbe4f427@comcast.net> (message from Donald H Locker on Mon, 18 Dec 2017 07:35:22 -0500) References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> <83vah7soy3.fsf@gnu.org> <8b7fa7fd-9693-e2de-4eb8-84bcbbe4f427@comcast.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 29680@debbugs.gnu.org > From: Donald H Locker > Date: Mon, 18 Dec 2017 07:35:22 -0500 > > 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. Makes sense. It's probably some subtle snafu with command-line quoting. Were the 'qoutes' typed by you, or did Emacs produce them? In any case, if you can spot where this quoting goes wrong, please tell the details. The combination of a native Windows Emacs and Cygwin shell/utilities is relatively less well tested and has subtleties, so I'm not surprised to hear about such problems. From unknown Mon Jun 23 04:13:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29680: another grep-find anomalous behaviour Resent-From: Donald H Locker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Dec 2017 17:19: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 To: Eli Zaretskii Cc: 29680@debbugs.gnu.org Received: via spool by 29680-submit@debbugs.gnu.org id=B29680.151361753918266 (code B ref 29680); Mon, 18 Dec 2017 17:19:01 +0000 Received: (at 29680) by debbugs.gnu.org; 18 Dec 2017 17:18:59 +0000 Received: from localhost ([127.0.0.1]:40794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQz47-0004kX-I2 for submit@debbugs.gnu.org; Mon, 18 Dec 2017 12:18:59 -0500 Received: from resqmta-ch2-01v.sys.comcast.net ([69.252.207.33]:42138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQz46-0004kJ-DA for 29680@debbugs.gnu.org; Mon, 18 Dec 2017 12:18:58 -0500 Received: from resomta-ch2-18v.sys.comcast.net ([69.252.207.114]) by resqmta-ch2-01v.sys.comcast.net with ESMTP id Qz3Le1BNVtSqDQz40efeJu; Mon, 18 Dec 2017 17:18:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1513617532; bh=uoX/UZiRyO9A0aH7AVitofhU93MlDN3hm+2nYXNN3rI=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=BcLo5DuKs1rVLW7togzFMllwxFFhd+ZLpgshjKjYv6Q66Bt/MKJ1rp1YVTteX/lT+ 6xPCr+BBcRKy24cqx2Mo/Wg8MaDhsqw13lL5Xed/4Ua7DMLIRwrRIzCUgMNdhCoju0 MfJ8acfyHmzJo+ELAytomN32q4rgJkq67xZIegrLKeOFlbJVq2hHyyJDgLRHx0ekFG wYF+zsvo+zOYSYSjRhtqEaj6AA1TIuOl+ONquWA6d48Lt31aM3MmJ4k0tNopcmWloH MIVhoSmMZ9IVot8+fTauyR2nxDQYBy8BhUxNoEgStq/tAeQM6GF0Sp1zsZkaKuSg9L 7rvlfbCS0UabA== Received: from [192.168.6.129] ([66.79.197.2]) by resomta-ch2-18v.sys.comcast.net with SMTP id Qz3peZ0tcyBH2Qz3sepLeo; Mon, 18 Dec 2017 17:18:50 +0000 References: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> <9d528dc5-c3a6-e612-9999-5b386571d817@comcast.net> <83zi6krl6p.fsf@gnu.org> <83vah7soy3.fsf@gnu.org> <8b7fa7fd-9693-e2de-4eb8-84bcbbe4f427@comcast.net> <83r2rsovlq.fsf@gnu.org> From: Donald H Locker Message-ID: Date: Mon, 18 Dec 2017 12:18:41 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <83r2rsovlq.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfIxhW+UhwgZurbuGlraKKU2fVp6RH4pdXUUtXaXEJpjfiOIEHROZJF9AghLQcBO7qyFV6Ir8d7Z8EtW3ucaGnzhCqEDkWo+RIa5PD8WIOw+dgIkJ4eJ+ AG9beZDfS4rZHOSOhw3ryAmuoYVKkcchcny9V7KJ7ldO00kRIRXLS3ju+ZKftZ3RgswQiqjN9bm4qw== X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) I'm going to suggest this bug be held in abeyance until I test a few other issues; this may well be a cygwin behaviour, in retrospect. I recently had to change all of my "egrep" to "grep -E" to address other issues, likely related to cygwin updates. My system log indicates updates of cygwin on 03Nov2017, 27Nov2017, 05Dec2017, and 15Dec2017. (This is the largest cluster of updates I have done within the last year.) Curiously, the 27Nov update included a w32api-runtime update, and this approximately coincides with the beginning of some of the troubles I am having. (I use find-grep _a_lot_ and don't remember ever having any problems until recently. I probably should have looked at my system log before raising a bug about emacs.) To answer the question: My typing was the source of the 'quotes' and the \\quoted-* (the default command presented in the minibuffer was find . -type f -exec grep -nHE {} \; I supply the "-name 'blahblah'" and the "regexp".) Donald. -- *Plain Text* email -- it's an accessibility issue () no proprietary attachments; no html mail /\ On 18-Dec-2017 11:21, Eli Zaretskii wrote: >> Cc: 29680@debbugs.gnu.org >> From: Donald H Locker >> Date: Mon, 18 Dec 2017 07:35:22 -0500 >> >> 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. > > Makes sense. > > It's probably some subtle snafu with command-line quoting. Were the > 'qoutes' typed by you, or did Emacs produce them? > > In any case, if you can spot where this quoting goes wrong, please > tell the details. The combination of a native Windows Emacs and > Cygwin shell/utilities is relatively less well tested and has > subtleties, so I'm not surprised to hear about such problems. > From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 08 15:41:40 2019 Received: (at control) by debbugs.gnu.org; 8 Jan 2019 20:41:40 +0000 Received: from localhost ([127.0.0.1]:50465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggyBw-0004RN-AT for submit@debbugs.gnu.org; Tue, 08 Jan 2019 15:41:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggyBu-0004R8-9m for control@debbugs.gnu.org; Tue, 08 Jan 2019 15:41:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggyBo-0005Vw-Ku for control@debbugs.gnu.org; Tue, 08 Jan 2019 15:41:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggyBo-0005Vs-I1 for control@debbugs.gnu.org; Tue, 08 Jan 2019 15:41:32 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ggyBo-0008Vp-Fg for control@debbugs.gnu.org; Tue, 08 Jan 2019 15:41:32 -0500 Subject: control message for bug 29680 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 08 Jan 2019 15:41:32 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:470:142:3::e X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tag 29680 + wontfix close 29680