I was trying to loop over parent directories to find cscope.out files.  
And I don't quite grok the following:

Why does this print 'blah':

:let file = "blah" | echo file

while this complains that 'file' isn't found:

:let file = "blah" | cs add file

Just like with LISP, there's something about Vim 
quoting/expressions/interpolation that doesn't quite match up with my 
expectations.

As a workaround cobbled together from bits and pieces, I'm doing:

    let s:cscope_name = "whatever"
    " ...
    exec "sil! cs add ".s:cscope_name

But, my main worry is that something isn't right w/ the concatenation 
there.

E.g: (I think this doesn't work, but hopefully demonstrates my general concern)

let s:var = "blah | system(do-something-malicious)"
exec "sil! cs add ".s:var

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

Reply via email to