vim-raku
vim-raku copied to clipboard
perl6 error string is injected into path var
Migration of https://github.com/vim-perl/vim-perl6/issues/19 by @ghost
Description of issue
ftplugin/perl6.vim executes a shell command when it's invoked without checking v:shell_error:
if &shellxquote != '"'
let perlpath = system('perl6 -e "@*INC.join(q/,/).say"')
else
let perlpath = system("perl6 -e '@*INC.join(q/,/).say'")
endif
Whatever this was originally for, it's not valid code in current versions of rakudo:
$ perl6 -e '@*INC.join(q/,/).say'
Dynamic variable @*INC not found
in block
I saw that when looking through the files initially and I have no idea what that is doing. I need to look at it more carefully and consider what should be done about.
The offending code has been removed in #24, so I believe this issue can be closed.