Typing vim and pressing tab produces the following output:
_vim:31: unmatched '
Commenting out lines 31-40 in
/usr/share/zsh/functions/Completion/Unix/_vim fixes the problem. Should
be trivial to fix properly for someone who understands zsh's compeltion
syntax (I don't).
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages zsh depends on:
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcap2 2.11-2 support for getting/setting POSIX.
ii libncursesw5 5.6+20080830-1 shared libraries for terminal hand
Versions of packages zsh recommends:
ii libpcre3 7.6-2.1 Perl 5 Compatible Regular Expressi
Versions of packages zsh suggests:
pn zsh-doc <none> (no description available)
-- debconf information excluded
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
I can't reproduce this and I don't see what the problem might be.
Is this consistent for you?
> On Wed, Sep 03, 2008 at 04:04:32PM +0300, Arto Jantunen wrote:
>> Typing vim and pressing tab produces the following output:
>>
>> _vim:31: unmatched '
>>
>> Commenting out lines 31-40 in
>> /usr/share/zsh/functions/Completion/Unix/_vim fixes the problem. Should
>> be trivial to fix properly for someone who understands zsh's compeltion
>> syntax (I don't).
>
> I can't reproduce this and I don't see what the problem might be.
> Is this consistent for you?
Hmm. Apparently it depends on "emulate csh" being used. I can't
reproduce with a .zshrc of only
autoload -U compinit
compinit
But can after adding emulate csh above those lines.
--
Arto Jantunen
Anyone know which option might be the culprit here?
Yes, 'csh_junkie_quotes'.
The problem will vanish, if you unset that option after your 'emulate
csh' call.
However, I thought 'setopt no_csh_junkie_quotes' or 'emulate -L' at
the start of the file would be enough. But apparently it isn't...
Regards, Frank
--
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
-- RFC 1925
csh_junkie_quotes
--- ../zsh-debug/zsh/Completion/compinit 2008-06-06 17:43:35.000000000 +0100
+++ Completion/compinit 2008-09-04 13:34:21.000000000 +0100
@@ -139,6 +139,7 @@
NO_allexport
NO_aliases
NO_cshnullglob
+ NO_cshjunkiequotes
NO_errexit
NO_globsubst
NO_histsubstpattern
--
Peter Stephenson <p...@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Line 31 of _vim is a single-quoted string that spans multiple lines.
So CSH_JUNKIE_QUOTES is almost certainly at fault.
For the record, the upstream fix to compinit will be applied
if the next upload occurs before a new upstream version.
I don't intend to do this prior to the lenny release unless there are
other issues, however.