From 2860453c4f9ad6abd7a967f9278401ae84a927e2 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sun, 4 Aug 2019 05:32:17 -0400 Subject: doc: update 'shellredir' advice for powershell #10686 Encoding can be utf8, unicode, utf32. User can choose to omit '-Encoding' to default to 'unicode'. 'ascii' encoding corrupts the following file: https://www.w3.org/2001/06/utf-8-test/UTF-8-demo.html Inspect 'foo.txt' with the following code after downloading the file. Get-Content -Encoding UTF8 UTF-8-demo.html | Out-File -Encoding ascii foo.txt --- runtime/doc/options.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index ce0e01265b..6fcead0894 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -5159,8 +5159,9 @@ A jump table for the options with a short description can be found at |Q_op|. unescaping, so to keep yourself sane use |:let-&| like shown above. *shell-powershell* To use powershell (on Windows): > - set shell=powershell shellquote=( shellpipe=\| shellredir=> shellxquote= + set shell=powershell shellquote=( shellpipe=\| shellxquote= set shellcmdflag=-NoLogo\ -NoProfile\ -ExecutionPolicy\ RemoteSigned\ -Command + set shellredir=\|\ Out-File\ -Encoding\ UTF8 < This option cannot be set from a |modeline| or in the |sandbox|, for security reasons. -- cgit