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: 24.5; find-grep not finding a file or missing the grep Date: Tue, 12 Dec 2017 15:36:54 -0500 Message-ID: <8b31cf6a-da03-2e80-459b-021c47def8c6@comcast.net> 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 1513111755 29624 195.159.176.226 (12 Dec 2017 20:49:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2017 20:49:15 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 To: 29680@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 12 21:49:11 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 1eOrUE-0007Pe-Ik for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Dec 2017 21:49:10 +0100 Original-Received: from localhost ([::1]:60446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOrUL-0006Hf-M4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Dec 2017 15:49:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOrUB-0006HZ-Fr for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 15:49:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOrU6-0005tj-GG for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 15:49:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOrU6-0005tX-9u for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 15:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eOrU5-0002bV-WB for bug-gnu-emacs@gnu.org; Tue, 12 Dec 2017 15:49: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: 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15131117399996 (code B ref -1); Tue, 12 Dec 2017 20:49:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Dec 2017 20:48:59 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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== Original-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 Content-Language: en-US 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-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 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:141005 Archived-At: 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 /\