From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23453: 25.0.93; dired-do-find-regexp does not work on Windows even after installing GNU find and grep Date: Wed, 04 May 2016 22:49:11 +0300 Message-ID: <834madioy0.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1462391502 8423 80.91.229.3 (4 May 2016 19:51:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 May 2016 19:51:42 +0000 (UTC) Cc: 23453@debbugs.gnu.org, dgutov@yandex.ru To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 04 21:51:31 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ay2pW-0006H6-Ol for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2016 21:51:30 +0200 Original-Received: from localhost ([::1]:49901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay2pS-0005Eh-TR for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 May 2016 15:51:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay2pJ-000525-I5 for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 15:51:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ay2p7-0001lb-SZ for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 15:51:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay2p7-0001l5-Ov for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 15:51:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ay2p4-0005z0-98 for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 15:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 May 2016 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23453 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, dgutov@yandex.ru Original-Received: via spool by submit@debbugs.gnu.org id=B.146239140422923 (code B ref -1); Wed, 04 May 2016 19:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 May 2016 19:50:04 +0000 Original-Received: from localhost ([127.0.0.1]:38265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay2o7-0005xf-Su for submit@debbugs.gnu.org; Wed, 04 May 2016 15:50:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay2o6-0005x6-NF for submit@debbugs.gnu.org; Wed, 04 May 2016 15:50:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ay2ns-0001Sl-49 for submit@debbugs.gnu.org; Wed, 04 May 2016 15:49:54 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay2ns-0001S3-1Z for submit@debbugs.gnu.org; Wed, 04 May 2016 15:49:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay2ng-0002tJ-DU for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 15:49:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ay2nS-0001NV-Lf for bug-gnu-emacs@gnu.org; Wed, 04 May 2016 15:49:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ay2nG-0001Ji-Ht; Wed, 04 May 2016 15:49:10 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2682 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ay2nA-0001f8-4s; Wed, 04 May 2016 15:49:04 -0400 In-reply-to: (message from Kaushal Modi on Wed, 04 May 2016 19:39:45 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:117795 Archived-At: > From: Kaushal Modi > Date: Wed, 04 May 2016 19:39:45 +0000 > > The problem is that the user PATH env var comes at a lower order of precendence than the system value of > the PATH env var. So first the admin controlled directories come in PATH and then the user added directories > come. You need to change the system Path, not the user Path. Alternatively, rename the MS find.exe to something else. > By I used the brute-force method below just so that the correct find.exe and grep.exe are found by emacs: > > (setq exec-path '("C:/Users/kmodi/Dropbox/Portable Software/ezwinports/bin" > "c:/ProgramData/Oracle/Java/javapath" No, don't do that, it won't work (as you have found out). Emacs sometimes invokes commands through the shell, which doesn't know about exec-path. This way lies madness. You should have your PATH and the corresponding Emacs variables in sync. (This is all basic Windows setup, nothing related to Emacs, btw.)