[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__
- eshell: find: missing argument to `-exec' ?, Xah Lee, 2009/09/11
- Re: eshell: find: missing argument to `-exec' ?, Alan Mackenzie, 2009/09/11
- Re: eshell: find: missing argument to `-exec' ?,
Pascal J. Bourguignon <=
- Re: eshell: find: missing argument to `-exec' ?, Eli Zaretskii, 2009/09/11
- Message not available
- Re: eshell: find: missing argument to `-exec' ?, Xah Lee, 2009/09/12
- Re: eshell: find: missing argument to `-exec' ?, Xah Lee, 2009/09/12
- Re: eshell: find: missing argument to `-exec' ?, Eli Zaretskii, 2009/09/12
- Message not available
- Re: eshell: find: missing argument to `-exec' ?, Xah Lee, 2009/09/13
Message not available