mirror of
https://github.com/neovim/neovim.git
synced 2026-05-26 23:08:36 +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>
This commit is contained in:
3
runtime/lua/vim/_meta/options.gen.lua
generated
3
runtime/lua/vim/_meta/options.gen.lua
generated
@@ -5918,6 +5918,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"
|
||||
@@ -5960,6 +5961,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