Thanks, gavenkoa.

Well, could you have a try on your environment?

I am suspicious that shell-command of emacs doesn't support pipe, thus the two commands fail.

Regards,
Denny

On Wed, Aug 25, 2010 at 3:47 AM, Oleksandr Gavenko <gavenkoa@gmail.com> wrote:
On 2010-08-23 18:26, filebat wrote:
Hi all

Any idea why below shell-command fails?

,----------- command
| M-! etags -a -I `find -iname *.py`
`-----------

,----------- output of the error message
| `find: No such file or directory
| *.py`: No such file or directory
`-----------

If I try "M-! find -iname *.py | etags -a -", I will get complain of "Access is denied".

'find' utility expect dir as first arg where it start look to files ))
And dont forget escape special shell chars like '*' ))

try 'find . -iname "*.py"'

--
Best regards!





--
Thanks & Regards

Denny Zhang