diff options
author | Enan Ajmain <3nan.ajmain@gmail.com> | 2022-07-20 01:43:26 +0600 |
---|---|---|
committer | Enan Ajmain <3nan.ajmain@gmail.com> | 2022-09-30 21:07:45 +0600 |
commit | b4d42bb9058308c38e3fe9d59458ce65b3f65eb0 (patch) | |
tree | 1a36a320f2a3498c8022e416478bf2e9b56e9c0a /test/functional/vimscript/eval_spec.lua | |
parent | ad6af3c1a96f9fae0881c3dcb1f1989531a1073e (diff) | |
download | rneovim-b4d42bb9058308c38e3fe9d59458ce65b3f65eb0.tar.gz rneovim-b4d42bb9058308c38e3fe9d59458ce65b3f65eb0.tar.bz2 rneovim-b4d42bb9058308c38e3fe9d59458ce65b3f65eb0.zip |
fix: make_filter_cmd for :! powershell
Problem:
`Start-Process` requires the command to be split into the shell
command and its arguments. Previously it was done by parsing, which
didn't handle cases such as
- commands with escaped space in their filepath
- quoted commands with space in their filepath
Solution:
Use
- `pwsh -Command` instead of `Start-Process`
- `Get-Content` instead of `-RedirectStandardInput`
- `Out-File` instead of `-RedirectStandardOutput`
Diffstat (limited to 'test/functional/vimscript/eval_spec.lua')
0 files changed, 0 insertions, 0 deletions