Hi!
Let's assume files is ['foo(bar).txt']. Let's try
:exec 'grep' fnameescape(join(files))
This throws an error (on ubuntu 12.04).
The following solves the problem:
:exec 'grep' escape(fnameescape(join(files)), '()')
I think though this shouldn't be necessary since it somehow undermines the
usefulness of fnameescape(). IMHO fnameescape() should also escape '()',
shoudn't it?
Regards,
Tom
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.