Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug report: segfault when pasting (function and alias names collide)



Victor Volle wrote on Fri, Jan 06, 2017 at 13:26:30 +0100:
> I tried to reduce it as far as possible, but it does not happen without
> oh-my-zsh.
> This is the minimal version that still shows the segfault:
> 
>     source $ZSH/oh-my-zsh.sh
> 
>     alias h='history'
> 
>     h() {
>       echo "foo"
>     }
> 
> Steps to reproduce:
> 
>    0) install latest oh-my-zsh
>    1) Invoke `zsh -f`
>    2) source the above script
>    3) paste anything

Thanks, that's still too broad.  Could you ask the oh-my-zsh people to
come up with a reproduction script that is more self-contained?

Before doing that you could try `zsh -fx` and grepping the output
'history' and for 'paste'... but if that doesn't produce a minimal
reproducer, we should ask omz for help, not reverse-engineer their code.  :)

CHeers,

Daniel



Messages sorted by: Reverse Date, Date, Thread, Author