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: find-grep fails with cmdproxy and gnuwin32 programs Date: Wed, 13 Dec 2006 01:51:53 +0100 Message-ID: <457F4EA9.80805@student.lu.se> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1165971131 28651 80.91.229.10 (13 Dec 2006 00:52:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 00:52:11 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 13 01:52:09 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 1GuILw-0007DR-5b for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 01:52:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuILv-0001mI-I5 for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 19:52:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuILg-0001is-TC for emacs-devel@gnu.org; Tue, 12 Dec 2006 19:51:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuILf-0001hN-6u for emacs-devel@gnu.org; Tue, 12 Dec 2006 19:51:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuILf-0001hC-2s for emacs-devel@gnu.org; Tue, 12 Dec 2006 19:51:51 -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 1GuILe-0008MQ-Vb for emacs-devel@gnu.org; Tue, 12 Dec 2006 19:51:51 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:59815 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GuILc-0004EC-4q for emacs-devel@gnu.org; Wed, 13 Dec 2006 01:51:49 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Emacs Devel X-Antivirus: avast! (VPS 0657-2, 2006-12-12), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1GuILc-0004EC-4q. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1GuILc-0004EC-4q 410e26a0128af292d4050d1c5bb8a8a2 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:63659 Archived-At: 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?