mirror of
https://github.com/neovim/neovim.git
synced 2026-06-15 16:23:48 +00:00
vim-patch:9.2.0458: Crash with invalid shellredir/shellpipe value (#39691)
Problem: Crash with invalid shellredir/shellpipe value
(bfredl)
Solution: Validate the option and allow only a single "%s".
fixes: vim/vim#20157
closes: vim/vim#20159
84ae09dd79
Co-authored-by: Christian Brabandt <cb@256bit.org>
(cherry picked from commit ffe87d91f7)
This commit is contained in:
committed by
github-actions[bot]
parent
79fd0b6655
commit
2902ec0541
3
runtime/lua/vim/_meta/options.gen.lua
generated
3
runtime/lua/vim/_meta/options.gen.lua
generated
@@ -5874,6 +5874,7 @@ vim.go.shcf = vim.go.shellcmdflag
|
||||
--- Note: When using a pipe like "| tee", you'll lose the exit code of the
|
||||
--- shell command. This might be configurable by your shell, look for
|
||||
--- the pipefail option (for bash and zsh, use ":set -o pipefail").
|
||||
--- Only a single "%s" value is allowed.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.shellpipe = "| tee"
|
||||
@@ -5916,6 +5917,8 @@ vim.go.shq = vim.go.shellquote
|
||||
--- explicitly set before.
|
||||
--- In the future pipes may be used for filtering and this option will
|
||||
--- become obsolete (at least for Unix).
|
||||
--- *E1577*
|
||||
--- Only a single "%s" item is allowed in the option value.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.shellredir = ">"
|
||||
|
||||
Reference in New Issue
Block a user