mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.2839: default redirection missing "ash" and "dash"
Problem: Default redirection missing "ash" and "dash".
Solution: Recognize "ash" and "dash". (Natanael Copa, closes vim/vim#8180)
5631836975
This commit is contained in:
parent
6fcd96250b
commit
ec04d37188
@ -5267,9 +5267,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
in a file and echoed to the screen. If the 'shell' option is "csh" or
|
in a file and echoed to the screen. If the 'shell' option is "csh" or
|
||||||
"tcsh" after initializations, the default becomes "|& tee". If the
|
"tcsh" after initializations, the default becomes "|& tee". If the
|
||||||
'shell' option is "sh", "ksh", "mksh", "pdksh", "zsh", "zsh-beta",
|
'shell' option is "sh", "ksh", "mksh", "pdksh", "zsh", "zsh-beta",
|
||||||
"bash" or "fish" the default becomes "2>&1| tee". This means that
|
"bash", "fish", "ash" or "dash" the default becomes "2>&1| tee". This
|
||||||
stderr is also included. Before using the 'shell' option a path is
|
means that stderr is also included. Before using the 'shell' option a
|
||||||
removed, thus "/bin/sh" uses "sh".
|
path is removed, thus "/bin/sh" uses "sh".
|
||||||
The initialization of this option is done after reading the vimrc
|
The initialization of this option is done after reading the vimrc
|
||||||
and the other initializations, so that when the 'shell' option is set
|
and the other initializations, so that when the 'shell' option is set
|
||||||
there, the 'shellpipe' option changes automatically, unless it was
|
there, the 'shellpipe' option changes automatically, unless it was
|
||||||
|
@ -863,7 +863,10 @@ void set_init_3(void)
|
|||||||
|| fnamecmp(p, "zsh-beta") == 0
|
|| fnamecmp(p, "zsh-beta") == 0
|
||||||
|| fnamecmp(p, "bash") == 0
|
|| fnamecmp(p, "bash") == 0
|
||||||
|| fnamecmp(p, "fish") == 0
|
|| fnamecmp(p, "fish") == 0
|
||||||
|
|| fnamecmp(p, "ash") == 0
|
||||||
|
|| fnamecmp(p, "dash") == 0
|
||||||
) {
|
) {
|
||||||
|
// Always use POSIX shell style redirection if we reach this
|
||||||
if (do_sp) {
|
if (do_sp) {
|
||||||
p_sp = (char_u *)"2>&1| tee";
|
p_sp = (char_u *)"2>&1| tee";
|
||||||
options[idx_sp].def_val[VI_DEFAULT] = p_sp;
|
options[idx_sp].def_val[VI_DEFAULT] = p_sp;
|
||||||
|
Loading…
Reference in New Issue
Block a user