Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14769
| Path | csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Grisha Levit <grishalevit@gmail.com> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Indices of array variables are sometimes considered unset (or just display an error). |
| Date | Tue, 6 Nov 2018 01:03:30 -0500 |
| Lines | 17 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.3541.1541484228.1284.bug-bash@gnu.org> (permalink) |
| References | <87va5bp5fr.fsf@gmail.com> <CAN6vQO8wb4+Peahk-+1+U6suFUPTBAYpj8vpBgGEvN-sBEBkjA@mail.gmail.com> <CAOSMAut13CHsDbwbeyMc2_XkK+rP_y-2XLWnL6_vp6Ggz-uYBg@mail.gmail.com> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Trace | usenet.stanford.edu 1541484228 22227 208.118.235.17 (6 Nov 2018 06:03:48 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | greatbigdot@gmail.com, bug-bash <bug-bash@gnu.org> |
| To | dualbus@gmail.com |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=83l4+mmcEhx9L3wGF0/aNNwfjdsQGKeXfpw6Uk5VFaY=; b=VN66+6Jaq72NlIZYVDLUOe9THK7ttD9fjCcmsyEwqoDkeOEuhEySFGNGKma+CgOCJA 3nCqPO9aeHhUDV0NFgIdKpp+DkyQXO5Pex4FHgzTi4gN3RWabAI2NYaekAzhFAbIID/5 6h3IUlASm17mMG6A5jXxgGbcaMxszwymQ5XaEx81q6JasbhGykqq1qHt2nXubgVe6zBZ ML42fEnRLVygF6LDIo2Hiigz+uBgZ4KpL205QZUnDp95Di/YSmNKZE8xl18MAkF33E2p B0J9Q/yDt/W42tPQzqRG2xGhdruJNvtwTE8vCATwtyv7uyPWD+UOL/jzQ9lFksyP4QOT 7Pog== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=83l4+mmcEhx9L3wGF0/aNNwfjdsQGKeXfpw6Uk5VFaY=; b=pg9tQXTtQQdBd142HxKwYGc5QZAJrsGS+IDI0uZfniSTd5B4KvuY/+YNSq0vEIiI9Y /bd3QVfqDeg0M+6K18ehM2jjYm3kHc4W8Yw5EyVPa2VwdsPZPn8BTiX+x6NT/nMGL8RX aUxfQQYWj/8ZbTIKOE/tAJmqA1znmkLNisWv0kqbw2FtJuAeUocVyNvoZ8bmrYP3d2th ZAjxx3xTedtu21UX8ZujX1Ep31D7SzpYEbjNTlfiMHAbQ9LovF99nQeh/qF1rvOOmr90 uKZACA7cFQA5bD8DZgEXCufF/X7WYiTZlTBkPlVm6BPLky9jZxW6b9+y5I/YA98OCx+p 8jgg== |
| X-Gm-Message-State | AGRZ1gIh8rXHs4z6kA6IdgPupYBUCf+8w/FH1SxjgJ+uGyOvYJG6mi4m sx6QHv00DwLK0HWe6V8eHAoN6VOCB1iVQ7YEyqA= |
| X-Google-Smtp-Source | AJdET5cQ4DSSZmG6hUObgCZbBOtt0DxVTIG/SLMnNxmP1mR770bgPN/brJwFQv8oqcpqww2xGp8RmXomnsqkPDMLmUs= |
| X-Received | by 2002:a0c:b407:: with SMTP id u7mr10624333qve.179.1541484221894; Mon, 05 Nov 2018 22:03:41 -0800 (PST) |
| In-Reply-To | <CAOSMAut13CHsDbwbeyMc2_XkK+rP_y-2XLWnL6_vp6Ggz-uYBg@mail.gmail.com> |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2607:f8b0:4864:20::833 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.21 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.21 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <http://lists.gnu.org/archive/html/bug-bash/> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| Xref | csiph.com gnu.bash.bug:14769 |
Show key headers only | View raw
On Mon, Nov 5, 2018 at 10:38 PM Eduardo Bustamante <dualbus@gmail.com>
wrote:
> Sorry, I'm having a hard time following this email thread.
I *think* the point is that OP expected that:
(a) ${!var[@]-foo} expands to the indexes of var if ${var[@]} if set, else
to `foo'
whereas the behavior they observed is:
(b) ${!var[@]-foo} expands to the value of the variable whose name is
stored
in ${var[@]} or to `foo' if that variable is unset
Their expectation seems reasonable since "the variable whose name is stored
in ${var[@]}" is kind of a weird thing.
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Indices of array variables are sometimes considered unset (or just display an error). Grisha Levit <grishalevit@gmail.com> - 2018-11-06 01:03 -0500
csiph-web