diff options
author | Dimitri Tcaciuc <dtcaciuc@users.noreply.github.com> | 2021-07-02 05:15:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 08:15:40 -0400 |
commit | 8b0765390292961aa0ec22e9931885c6d947c5e6 (patch) | |
tree | 42ae5afac31f865b16cce6c63c4b7d1628c86811 /runtime | |
parent | 7d8202087bed0a0baefb61557fcea15087fb01b3 (diff) | |
download | rneovim-8b0765390292961aa0ec22e9931885c6d947c5e6.tar.gz rneovim-8b0765390292961aa0ec22e9931885c6d947c5e6.tar.bz2 rneovim-8b0765390292961aa0ec22e9931885c6d947c5e6.zip |
doc(options): Fix recommended PowerShell config (#14349)
Ensure that
* Shell uses UTF8 input/output mode
* Stderr output is captured, in UTF8
* Program exit codes are correctly captured
Update functional test harness and add tests
for :make command.
Closes #13713
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index af65241bbf..791fb8664e 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5238,11 +5238,12 @@ A jump table for the options with a short description can be found at |Q_op|. Note that such processing is done after |:set| did its own round of unescaping, so to keep yourself sane use |:let-&| like shown above. *shell-powershell* - To use powershell: > + To use PowerShell: > let &shell = has('win32') ? 'powershell' : 'pwsh' - set shellquote= shellpipe=\| shellxquote= - set shellcmdflag=-NoLogo\ -NoProfile\ -ExecutionPolicy\ RemoteSigned\ -Command - set shellredir=\|\ Out-File\ -Encoding\ UTF8 + let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;' + let &shellredir = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode' + let &shellpipe = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode' + set shellquote= shellxquote= < This option cannot be set from a |modeline| or in the |sandbox|, for security reasons. |