On Dec 21, 9:27 am, "Christian Brabandt" <[email protected]> wrote: > On Tue, December 21, 2010 8:21 am, J rgen Kr mer wrote: > > cmd.exe does not handle single quotes, so you have to enclose the whole > > argument to awk with double quotes. awk does not seem to accept single > > quotes either (I'm not sure, because I don't normally use awk), so you > > have to put double quotes around test= , too. The problem is now: How > > to put quotes inside quotes? One (the?) solution: Put everything except > > the quotes inside quotes and escape the quotes that need to be there > > for awk. The escape char in cmd.exe is a caret, so you finally get this > > command: > > > :r !awk "BEGIN { print "^""test="^"" }" > > That is nasty. I wouldn't remember what that means a couple > of hours later... > > regards,
Maybe its nasty but it resolved all my awk problems with the gnu version in windows. I created a abbreviation in order to insert "^"" faster. -- You received this message from the "vim_use" 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
