From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: find-dired problems Date: Thu, 12 Dec 2002 08:24:27 +0200 (IST) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1039674548 26586 80.91.224.249 (12 Dec 2002 06:29:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2002 06:29:08 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18MMqG-0006uK-00 for ; Thu, 12 Dec 2002 07:29:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MMmJ-0002xy-05 for gnu-help-gnu-emacs@m.gmane.org; Thu, 12 Dec 2002 01:24:59 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18MMm2-0002xR-00 for help-gnu-emacs@gnu.org; Thu, 12 Dec 2002 01:24:42 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18MMlx-0002w7-00 for help-gnu-emacs@gnu.org; Thu, 12 Dec 2002 01:24:41 -0500 Original-Received: from is.elta.co.il ([199.203.121.2]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18MMlw-0002uc-00 for help-gnu-emacs@gnu.org; Thu, 12 Dec 2002 01:24:37 -0500 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA16205 for ; Thu, 12 Dec 2002 08:24:28 +0200 (IST) X-Sender: eliz@is Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:4557 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4557 On 12 Dec 2002, Timur Aydin wrote: > d:/BCMDEV/: > find . \( Makefile \) -exec ls -ld {} \; > find: paths must precede expression > Usage: find [path...] [expression] > > find exited abnormally with code 1 at Thu Dec 12 00:39:28 I'm guessing that the problem is caused by the shell used by Emacs on your platform when it runs find-dired. The above command that invokes `find' assumes a Unixy shell, and uses \ to quote special characters. If Emacs invokes the Windows shell (such as cmd.exe), those backslashes are left alone and wind up confusing `find' which doesn't expect them. Try forcing Emacs to invoke the Cygwin port of Bash as the shell, and the problems might go away.