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

Re: A serious bug in execution – where to debug?



On Tue, 30 Jul 2019 at 20:28, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Tue, Jul 30, 2019 at 10:01 AM Sebastian Gniazdowski
> <sgniazdowski@xxxxxxxxx> wrote:
> >
> > If I remove the conditional from its third line, i.e. change the line
> > to:
> >
> > ZPLG_REPORTS[_dtrace/_dtrace]+="$2"$'\n'
> >
> > then the problem disappears.
>
> If you change the [[ ... ]] && ... to an if/then, does the behavior change?
> If you add a "return" or "return $?" at the end of the function, does it change?

a) yes, the problem cancels with if-then
b) no, adding one of the return's doesn't change the behavior

-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



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