Thursday, December 3, 2009

using shell to generate file list under Windows

I've recently started working on a Windows platform, and I'm
having some problems that, IIRC, worked correctly (i.e. did what
I expected) on Unix platforms. In particular:

:args ! egrep -l 'some string' *.{h,cpp}

I expect this to set the file list to all of the files
containing "some string" (for later use with argdo, for
example); I use this a lot when "modernizing" C++ sources.
Under Windows, I end up with "new file !" or something along
those lines.

I've installed CygWin, and set vim up so it uses bash as its
shell.

What do I have to do to get this to work? I need it fairly
badly, since I have to deal with a large body of existing code,
in which I often have to make global changes.

--
James Kanze

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: