On Tue, Jul 30, 2019 at 11:00 PM Sebastian Gniazdowski < sgniazdowski@gmail.com> wrote: > On Tue, 30 Jul 2019 at 20:28, Bart Schaefer > wrote: > > > > On Tue, Jul 30, 2019 at 10:01 AM Sebastian Gniazdowski > > 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 > I think Bart solved it. Do you have `emulate -L zsh` in your `zle` function?