comparison runtime/doc/eval.txt @ 25084:beff72446e2e v8.2.3079

patch 8.2.3079: Powershell core not supported by default Commit: https://github.com/vim/vim/commit/a3d1b29bd36487167c98b3cefa30f06c529e412d Author: Mike Williams <mikew@globalgraphics.com> Date: Wed Jun 30 20:56:00 2021 +0200 patch 8.2.3079: Powershell core not supported by default Problem: Powershell core not supported by default. Solution: Set option defaults for "pwsh". (Mike Williams, closes https://github.com/vim/vim/issues/8481)
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Jun 2021 21:00:05 +0200
parents 0ce24f734615
children e38a406ccc46
comparison
equal deleted inserted replaced
25083:05c4686c56d2 25084:beff72446e2e
9876 9876
9877 < {only available when compiled with the |+cryptv| feature} 9877 < {only available when compiled with the |+cryptv| feature}
9878 9878
9879 shellescape({string} [, {special}]) *shellescape()* 9879 shellescape({string} [, {special}]) *shellescape()*
9880 Escape {string} for use as a shell command argument. 9880 Escape {string} for use as a shell command argument.
9881 On MS-Windows, when the 'shell' contains powershell then it 9881 When the 'shell' contains powershell (MS-Windows) or pwsh
9882 will enclose {string} in single quotes and will double up all 9882 (MS-Windows, Linux, and MacOS) then it will enclose {string}
9883 internal single quotes. With other values for 'shell' when 9883 in single quotes and will double up all internal single
9884 'shellslash' is not set, it will enclose {string} in double 9884 quotes.
9885 quotes and double all double quotes within {string}. 9885 On MS-Windows, when 'shellslash' is not set, it will enclose
9886 {string} in double quotes and double all double quotes within
9887 {string}.
9886 Otherwise it will enclose {string} in single quotes and 9888 Otherwise it will enclose {string} in single quotes and
9887 replace all "'" with "'\''". 9889 replace all "'" with "'\''".
9888 9890
9889 When the {special} argument is present and it's a non-zero 9891 When the {special} argument is present and it's a non-zero
9890 Number or a non-empty String (|non-zero-arg|), then special 9892 Number or a non-empty String (|non-zero-arg|), then special
11040 is different for at least 26 consecutive calls. Example: > 11042 is different for at least 26 consecutive calls. Example: >
11041 :let tmpfile = tempname() 11043 :let tmpfile = tempname()
11042 :exe "redir > " . tmpfile 11044 :exe "redir > " . tmpfile
11043 < For Unix, the file will be in a private directory |tempfile|. 11045 < For Unix, the file will be in a private directory |tempfile|.
11044 For MS-Windows forward slashes are used when the 'shellslash' 11046 For MS-Windows forward slashes are used when the 'shellslash'
11045 option is set or when 'shellcmdflag' starts with '-' except 11047 option is set, or when 'shellcmdflag' starts with '-' and
11046 when when 'shell' contains powershell. 11048 'shell' does not contain powershell or pwsh.
11047 11049
11048 11050
11049 term_ functions are documented here: |terminal-function-details| 11051 term_ functions are documented here: |terminal-function-details|
11050 11052
11051 11053