From: Kim G. <kim...@gm...> - 2012-06-26 19:30:02
|
Hi Frederick, On Tue, Jun 26, 2012 at 9:01 PM, Frederick (Gene) Grinder <Fre...@mi...> wrote: > In my local aliases file I want to put something like this: > > grep|run grep –nrie “%s” c:\|gvim – > > Note that that second | is intended to be part of my command. Obviously > this isn’t working as I want, since that | is actually acting as the field > separator. > > Is there a way to “escape” that character? I tried to use \|, and also ^| > (a la MSDOS), but neither seemed to work. Is there another way? I took a look at the source and found readTabDelimitedFile in tools.js. It turns out aliases can be either pipe-delimited or tab-delimited, but the function considers them interchangeable so you can mix pipes and tabs in the same file, and I don't see a way of escaping. That's annoying... Could you file a bug for it, and I'll try and fix it up when I have some time? Thanks, - Kim |