Bug#362999: vim: Incorrectly sets shellpipe variable when using
zsh-beta
Brett Nash
nash at nash.id.au
Mon Apr 17 01:16:40 UTC 2006
Package: vim
Version: 1:6.4+7.0c05-1
Severity: normal
If you install and set zsh-beta to be your default shell (using chsh, not
update-aleternatives) vim will incorrectly set 'shellpipe'. This will cause
functions like quickfix mode (:make) to fail.
'shellpipe' will be set to '| tee'. For quickfix you also (generally) need to
capture stderr (either '|& tee' or '2>&1| tee' in zsh). For normal zsh the
variable is '2>&1| tee'.
To reproduce:
% echo $SHELL
/bin/zsh
% vim -c 'set shellpipe'
(Vim displays 'shellpipe=2>&1| tee' at bottom of screen)
:q! (quit vim)
% export SHELL=/bin/zsh-beta
% ls -l $SHELL
-rwxr-xr-x 1 root root 496552 Feb 13 13:40 /bin/zsh-beta
% vim -c 'set shellpipe'
(Vim displays 'shellpipe=| tee' at bottom of screen)
Try building a program with an error anywhere, and watch it break...
Also I wonder if vim should default to '&| tee' for zsh, rather then the more
cumbersome 2>&1| style.
Note this affects version 6.4, I upgraded to the 7.0 beta to see if it went
away - it didn't, so I investigated more...
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages vim depends on:
ii libc6 2.3.6-6 GNU C Library: Shared libraries
ii libgpmg1 1.19.6-22 General Purpose Mouse - shared lib
ii libncurses5 5.5-1 Shared libraries for terminal hand
ii vim-common 1:6.4+7.0c05-1 Vi IMproved - Common files
ii vim-runtime 1:6.4+7.0c05-1 Vi IMproved - Runtime files
vim recommends no packages.
-- no debconf information
More information about the pkg-vim-maintainers
mailing list