From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Timur Aydin Newsgroups: gmane.emacs.help Subject: find-dired problems Date: 12 Dec 2002 00:47:02 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039647480 7010 80.91.224.249 (11 Dec 2002 22:58:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2002 22:58:00 +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 18MFnf-0001ol-00 for ; Wed, 11 Dec 2002 23:57:55 +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 18MFgR-00069v-02 for gnu-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2002 17:50:27 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!HSNX.atgi.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!news.giganews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 11 Dec 2002 16:45:51 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Lines: 48 Original-X-Trace: sv3-3yMteKFQUN0kpGh+a1z05bW0bLrD4BO1tNQfljLjwAak6qTcf4+nS3vkp0+tUcrLdwgoqv0RRHg1mcw!5iVbQZbd+k/QrdB2lgbVFQnCdE9fEV+YzBXfV2q8drWU/wCux6fq9w== Original-X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:108016 Original-To: help-gnu-emacs@gnu.org 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:4547 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4547 Hi, I'm having trouble getting "find-dired" to behave correctly. Here is what I do: 1) I open a directory using dired 2) I do M-x find-dired, accept the directory offered and specify Makefile as the file to find. Here is what emacs comes back with: 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 tried using find-name-dired and find-grep-dired. All of them give errors: find-name-dired, directory is d:/BCMDEV, pattern is Mak* d:/BCMDEV/: find . \( -name 'Mak*' \) -exec ls -ld {} \; find: missing argument to `-exec' find exited abnormally with code 1 at Thu Dec 12 00:45:04 find-grep-dired, directory is d:/BCMDEV, pattern is ALIGN d:/BCMDEV/: find . \( -type f -exec grep -q ALIGN {} \; \) -exec ls -ld {} \; find: missing argument to `-exec' find exited abnormally with code 1 at Thu Dec 12 00:46:35 What am I doing wrong? I am using emacs 21.2 on W2000 and Cygwin is installed on this system. Cygwin is located in c:\cygwin and: HOMEDRIVE=C: HOMEPATH=\cygwin\home\tayd. -- Timur.