From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: find-grep fails with cmdproxy and gnuwin32 programs Date: Wed, 13 Dec 2006 02:02:43 +0100 Message-ID: <457F5133.10404@student.lu.se> References: <457F4EA9.80805@student.lu.se> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165971779 30200 80.91.229.10 (13 Dec 2006 01:02:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 01:02:59 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 02:02:59 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuIWO-0008ID-28 for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 02:02:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuIWN-0000Er-DS for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 20:02:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuIWA-0000Bx-8q for emacs-devel@gnu.org; Tue, 12 Dec 2006 20:02:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuIW7-0000Am-QT for emacs-devel@gnu.org; Tue, 12 Dec 2006 20:02:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuIW7-0000Aj-Lo for emacs-devel@gnu.org; Tue, 12 Dec 2006 20:02:39 -0500 Original-Received: from [80.76.149.212] (helo=ch-smtp01.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GuIW7-0001QZ-1s for emacs-devel@gnu.org; Tue, 12 Dec 2006 20:02:39 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:59895 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GuIW5-0003ds-4j for emacs-devel@gnu.org; Wed, 13 Dec 2006 02:02:37 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Emacs Devel In-Reply-To: <457F4EA9.80805@student.lu.se> X-Antivirus: avast! (VPS 0657-2, 2006-12-12), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GuIW5-0003ds-4j. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GuIW5-0003ds-4j 992ffcce3ab6bc7938dd06783c0f7362 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63661 Archived-At: Lennart Borgman wrote: > I have currently set shell-file-name and explicit-shell-file-name to > the full file name of cmdproxy.exe. I have gnuwin32 versions of find, > xargs and grep in my path. Then I try > > M-x grep-find RET > find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e lwarn > > I get > > -*- mode: grep; default-directory: "c:/EmacsW32/lisp/" -*- > Grep started at Wed Dec 13 00:16:36 > > find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e lwarn > xargs: grep: Permission denied > > Grep finished (matches found) at Wed Dec 13 00:16:37 > > If I try the same command in a console window it works. If I look at > exec-path and (getenv "PATH") they look ok to me. > > I am trying to find out if Cygwin or Gnuwin32 is best for things like > this. If I use Cygwin instead it works, but it seems like a bug > somewhere that Gnuwin32+cmd.exe does not work. Or am I doing something > stupid here? Sorry. Please forget this. Obviously I was, since it works now. There seems to have been something wrong with PATH though I did not think so.