Do I have missed a non quoting version of <f-args> ?

Consider this example:


function! T(...)
  for a in a:000
    echom 'arg:'.string(a)
  endfor
endfunction

------ 8< ------ 8<   start test.vim  < ------ 8< ------ 8< ------ 8< 

        command! -nargs=* -buffer TestAddSeven :call T(7,<f-args>)
        command! -nargs=* -buffer Test2 :exec "call 
T(7,".join([<f-args>],',').')'
        TestAddSeven 4 'abc'
        echo "Test 2"
        Test2 3 'abc'

------ >8 ------ >8   end  >8 ------ >8 ------ >8 ------ >8 ------ >8 


------ >8 ------ >8   output  ------ >8 ------ >8 ------ >8 ------ >8 
        arg:7
        arg:'4'        << here you can see that all arguments get extra extra 
quotes
        arg:'''abc'''
        Test 2
        arg:7
        arg:3
        arg:'abc'
------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< 

So is there a non quoting version of <f-args> which behaves like the
join([<f-args>],', ') part?

Marc

Reply via email to