mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:5faeb60480c6 (#28768)
runtime(doc): clarify {special} argument for shellescape()
closes: vim/vim#14770
5faeb60480
N/A patch:
vim-patch:c0e038b59f84
Co-authored-by: Enno <Konfekt@users.noreply.github.com>
This commit is contained in:
9
runtime/doc/builtin.txt
generated
9
runtime/doc/builtin.txt
generated
@@ -6962,10 +6962,11 @@ shellescape({string} [, {special}]) *shellescape()*
|
|||||||
Otherwise encloses {string} in single-quotes and replaces all
|
Otherwise encloses {string} in single-quotes and replaces all
|
||||||
"'" with "'\''".
|
"'" with "'\''".
|
||||||
|
|
||||||
If {special} is a |non-zero-arg|:
|
The {special} argument adds additional escaping of keywords
|
||||||
- Special items such as "!", "%", "#" and "<cword>" will be
|
used in Vim commands. If it is a |non-zero-arg|:
|
||||||
preceded by a backslash. The backslash will be removed again
|
- Special items such as "!", "%", "#" and "<cword>" (as listed
|
||||||
by the |:!| command.
|
in |expand()|) will be preceded by a backslash.
|
||||||
|
The backslash will be removed again by the |:!| command.
|
||||||
- The <NL> character is escaped.
|
- The <NL> character is escaped.
|
||||||
|
|
||||||
If 'shell' contains "csh" in the tail:
|
If 'shell' contains "csh" in the tail:
|
||||||
|
9
runtime/lua/vim/_meta/vimfn.lua
generated
9
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -8293,10 +8293,11 @@ function vim.fn.sha256(string) end
|
|||||||
--- Otherwise encloses {string} in single-quotes and replaces all
|
--- Otherwise encloses {string} in single-quotes and replaces all
|
||||||
--- "'" with "'\''".
|
--- "'" with "'\''".
|
||||||
---
|
---
|
||||||
--- If {special} is a |non-zero-arg|:
|
--- The {special} argument adds additional escaping of keywords
|
||||||
--- - Special items such as "!", "%", "#" and "<cword>" will be
|
--- used in Vim commands. If it is a |non-zero-arg|:
|
||||||
--- preceded by a backslash. The backslash will be removed again
|
--- - Special items such as "!", "%", "#" and "<cword>" (as listed
|
||||||
--- by the |:!| command.
|
--- in |expand()|) will be preceded by a backslash.
|
||||||
|
--- The backslash will be removed again by the |:!| command.
|
||||||
--- - The <NL> character is escaped.
|
--- - The <NL> character is escaped.
|
||||||
---
|
---
|
||||||
--- If 'shell' contains "csh" in the tail:
|
--- If 'shell' contains "csh" in the tail:
|
||||||
|
@@ -9903,10 +9903,11 @@ M.funcs = {
|
|||||||
Otherwise encloses {string} in single-quotes and replaces all
|
Otherwise encloses {string} in single-quotes and replaces all
|
||||||
"'" with "'\''".
|
"'" with "'\''".
|
||||||
|
|
||||||
If {special} is a |non-zero-arg|:
|
The {special} argument adds additional escaping of keywords
|
||||||
- Special items such as "!", "%", "#" and "<cword>" will be
|
used in Vim commands. If it is a |non-zero-arg|:
|
||||||
preceded by a backslash. The backslash will be removed again
|
- Special items such as "!", "%", "#" and "<cword>" (as listed
|
||||||
by the |:!| command.
|
in |expand()|) will be preceded by a backslash.
|
||||||
|
The backslash will be removed again by the |:!| command.
|
||||||
- The <NL> character is escaped.
|
- The <NL> character is escaped.
|
||||||
|
|
||||||
If 'shell' contains "csh" in the tail:
|
If 'shell' contains "csh" in the tail:
|
||||||
|
Reference in New Issue
Block a user