Clearly the code meant to check for SHELL_SILENT in order to send to
/dev/null, not SHELL_EXPAND.

This works because all the callers of get_cmd_output that use
SHELL_SILENT also use SHELL_EXPAND.

This has been there since Vim 5.0.

Signed-off-by: Felipe Contreras <[email protected]>
---
 src/os_unix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/os_unix.c b/src/os_unix.c
index 20c61106f..79b71ca97 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4710,7 +4710,7 @@ mch_call_shell_fork(
            }
 # endif
 
-           if (!show_shell_mess || (options & SHELL_EXPAND))
+           if (!show_shell_mess || (options & SHELL_SILENT))
            {
                int fd;
 
-- 
2.32.0.rc2

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20210601134251.947803-1-felipe.contreras%40gmail.com.

Raspunde prin e-mail lui