aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir
diff options
context:
space:
mode:
authorEnan Ajmain <3nan.ajmain@gmail.com>2023-03-20 03:25:12 +0600
committerGitHub <noreply@github.com>2023-03-19 14:25:12 -0700
commitecc4d0e435d618828b938d78fbded7fbe1314760 (patch)
tree777d1989517b013252a3c577f3e22246f1bf2746 /test/old/testdir
parent5726f33e8caaa5967c4ae93972a9eaec0b9c0c82 (diff)
downloadrneovim-ecc4d0e435d618828b938d78fbded7fbe1314760.tar.gz
rneovim-ecc4d0e435d618828b938d78fbded7fbe1314760.tar.bz2
rneovim-ecc4d0e435d618828b938d78fbded7fbe1314760.zip
fix(shell): on Windows :make does not echo #22728
Problem: On Windows, :make does not display the output of the program it runs. The cause is the default 'shellpipe'. On Linux, nvim uses `tee` to redirect the output to both stdout and the error file. In Windows, for both cmd.exe and powershell, the output is only redirected to the error file. Solution: - On Windows, change the 'shellpipe' default to "2>&1| tee". - Nvim includes `tee` in its Windows package. - Document recommended defaults for powershell. Fixes #12910
Diffstat (limited to 'test/old/testdir')
-rw-r--r--test/old/testdir/test_shell.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/old/testdir/test_shell.vim b/test/old/testdir/test_shell.vim
index 8b9c7a5b12..3d0056bfc1 100644
--- a/test/old/testdir/test_shell.vim
+++ b/test/old/testdir/test_shell.vim
@@ -22,7 +22,7 @@ func Test_shell_options()
\ ['tcsh', '-c', '|& tee', '', '>&', '', '']]
endif
if has('win32')
- let shells += [['cmd', '/s /c', '>%s 2>&1', '', '>%s 2>&1', '', '"']]
+ let shells += [['cmd', '/s /c', '2>&1| tee', '', '>%s 2>&1', '', '"']]
endif
" start a new Vim instance with 'shell' set to each of the supported shells