From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: bad math expression error inside _pick_variant when running insert-all-matches for ls
Date: Mon, 28 Sep 2020 19:02:06 +0200 [thread overview]
Message-ID: <CAN=4vMqJ3ZKasrRvcKPVYU=mhTpa4mjwZNe5FYgAeuj5f8zXBA@mail.gmail.com> (raw)
In-Reply-To: <198519070.131537.1601311876085@mail2.virginmedia.com>
On Mon, Sep 28, 2020 at 6:51 PM Peter Stephenson
<p.w.stephenson@ntlworld.com> 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.
next prev parent reply other threads:[~2020-09-28 17:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-28 15:39 lilydjwg
2020-09-28 16:30 ` Mikael Magnusson
2020-09-28 16:47 ` Peter Stephenson
2020-09-28 16:51 ` Peter Stephenson
2020-09-28 17:02 ` Roman Perepelitsa [this message]
2020-09-28 17:06 ` Peter Stephenson
2020-09-28 17:51 ` lilydjwg
2020-09-28 20:42 ` Bart Schaefer
2020-09-29 6:10 ` Oliver Kiddle
2020-09-29 14:59 ` lilydjwg
2020-10-04 17:11 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN=4vMqJ3ZKasrRvcKPVYU=mhTpa4mjwZNe5FYgAeuj5f8zXBA@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=p.w.stephenson@ntlworld.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).