help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eshell: find: missing argument to `-exec' ?


From: Pascal J. Bourguignon
Subject: Re: eshell: find: missing argument to `-exec' ?
Date: Fri, 11 Sep 2009 14:43:53 +0200
User-agent: Gnus/5.101 (Gnus v5.10.10) Emacs/22.2 (gnu/linux)

Alan Mackenzie <acm@muc.de> writes:

> Hi, Xah,
>
> Xah Lee <xahlee@gmail.com> wrote:
>> when running eshell in Windows, i do
>
>> c:\Users\xah\web\xxst\make_download_copy>find -name "*el" -exec rm {}
>> \;
>> find -name "*el" -exec rm {} \;
>> find: missing argument to `-exec'
>
>> why is it missing argument?
>
> At a guess, you need to quote the {}, like this:
>
>     find -name "*el" -exec rm \{} \;

find gives this error when it doesn't see the ';' argument.
I know of no shell where {} needs to be escaped or quoted.

eshell seems to have difficulties with backslash escapes on
MS-Windows.  Then we could use quotes instead:

   find -name "*el" -exec rm {} ';'

-- 
__Pascal Bourguignon__


reply via email to

[Prev in Thread] Current Thread [Next in Thread]