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

Re: bad math expression error inside _pick_variant when running insert-all-matches for ls



On Mon, Sep 28, 2020 at 6:51 PM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> -elif (( $precommands[(I)builtin] )); then
> +elif (( ${precommands[(I)builtin]:-0} )); then

Doesn't $precommands[(I)builtin] always expand to an integer (as long
as precommands is an array)? In which case can it expand to null?

Roman.




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