Re: ZSH segmentation fault while completing "git mv dir/"

2013-04-03 Thread Matthieu Moy
Manlio Perillo writes: > By the way: have you filled a bug report to Debian? No, but this is a bug touching very few users, in Debian stable which is reaching its end of life. I do not think the Debian folks would be interested in fixing this non-security, non-critical bug now. -- Matthieu Moy

Re: ZSH segmentation fault while completing "git mv dir/"

2013-04-02 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 02/04/2013 16:32, Matthieu Moy ha scritto: > Felipe Contreras writes: > >> And this is a workaround: >> >> --- a/contrib/completion/git-completion.zsh >> +++ b/contrib/completion/git-completion.zsh >> @@ -66,7 +66,7 @@ __gitcomp_file () >> >>

Re: ZSH segmentation fault while completing "git mv dir/"

2013-04-02 Thread Matthieu Moy
Junio C Hamano writes: > Would it help users more to have that as part of the instruction at > the beginning of contrib/completion/git-completion.zsh where it > already says "here is how you use it via fpath", than leaving it > here in the list archive? Juging from the answers I got, I do not th

Re: ZSH segmentation fault while completing "git mv dir/"

2013-04-02 Thread Junio C Hamano
Matthieu Moy writes: > Felipe Contreras writes: > >> And this is a workaround: >> >> --- a/contrib/completion/git-completion.zsh >> +++ b/contrib/completion/git-completion.zsh >> @@ -66,7 +66,7 @@ __gitcomp_file () >> >> local IFS=$'\n' >> compset -P '*[=:]' >> - compadd -Q

Re: ZSH segmentation fault while completing "git mv dir/"

2013-04-02 Thread Matthieu Moy
Felipe Contreras writes: > And this is a workaround: > > --- a/contrib/completion/git-completion.zsh > +++ b/contrib/completion/git-completion.zsh > @@ -66,7 +66,7 @@ __gitcomp_file () > > local IFS=$'\n' > compset -P '*[=:]' > - compadd -Q -p "${2-}" -f -- ${=1} && _ret=0 >

Re: ZSH segmentation fault while completing "git mv dir/"

2013-04-01 Thread Felipe Contreras
On Tue, Mar 12, 2013 at 1:53 AM, Matthieu Moy wrote: > If I add a simple 'echo "$cur" >&2' instead of the case, the problem > reappears. Somehow, the fact that I'm accessing $cur seems to create the > segfault. Actually, the minimalistic _git_mv reproducing the problem is: > > _git_mv () > { >

Re: ZSH segmentation fault while completing "git mv dir/"

2013-03-12 Thread Matthieu Moy
Jeff Epler writes: > If it's dependent on eval "`dircolors`", it suggests it might be > dependent on the size of the environment. Maybe try with FOO=`perl -e > 'print "x"x1000'` for various values of 1000... It's not this, but I could reduce the problem to a slightly simpler .zshrc: --

Re: ZSH segmentation fault while completing "git mv dir/"

2013-03-11 Thread Jeff Epler
If it's dependent on eval "`dircolors`", it suggests it might be dependent on the size of the environment. Maybe try with FOO=`perl -e 'print "x"x1000'` for various values of 1000... Jeff -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.

Re: ZSH segmentation fault while completing "git mv dir/"

2013-03-11 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/03/2013 16:37, Matthieu Moy ha scritto: > [...] > I could reproduce with ~/.zshrc containing just: > > -- > fpath=(${HOME}/usr/etc/zsh ${fpath}) > > autoload -Uz compinit > compinit > > eval "`dircol

Re: ZSH segmentation fault while completing "git mv dir/"

2013-03-11 Thread Matthieu Moy
Manlio Perillo writes: > I have the same system, but I can't reproduce the problem. > What is the content of your .zshrc file? I could reproduce with ~/.zshrc containing just: -- fpath=(${HOME}/usr/etc/zsh ${fpath}) autoload -Uz compinit compinit ev

Re: ZSH segmentation fault while completing "git mv dir/"

2013-03-11 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/03/2013 13:30, Matthieu Moy ha scritto: > Hi, > > Since the recent update to bash completion, I often get a segmentation > fault from ZSH. This is most likely a bug in ZSH, but it would be cool > to avoid triggering it from Git. > > [...] > moy

ZSH segmentation fault while completing "git mv dir/"

2013-03-11 Thread Matthieu Moy
Hi, Since the recent update to bash completion, I often get a segmentation fault from ZSH. This is most likely a bug in ZSH, but it would be cool to avoid triggering it from Git. Steps to reproduce: moy@anie:/tmp$$ git init zsh Initialized empty Git repository in /tmp/zsh/.git/ moy@anie:/tmp$$ c