patch 9.0.0648: when using powershell input redirection does not work
Problem: When using powershell input redirection does not work.
Solution: Use a different shell command for powershell. (Yegappan
Lakshmanan, closes #11257)
diff --git a/src/testdir/test_shell.vim b/src/testdir/test_shell.vim
index 1ed4c5e..a194f3b 100644
--- a/src/testdir/test_shell.vim
+++ b/src/testdir/test_shell.vim
@@ -97,6 +97,18 @@
finally
bwipe!
endtry
+
+ " filter buffer contents through an external command
+ new
+ call setline(1, ['tom', 'sam', 'andy'])
+ try
+ %!sort
+ call assert_equal(['andy', 'sam', 'tom'], getline(1, '$'), e[0])
+ catch
+ call assert_report($'Failed to filter buffer contents, shell: {e[0]}, caught {v:exception}')
+ finally
+ bwipe!
+ endtry
endif
endfor
set shell& shellcmdflag& shellpipe& shellquote&