Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15271
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Eli Schwartz <eschwartz@archlinux.org> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: x[ |
| Date | Mon, 29 Jul 2019 19:53:57 -0400 |
| Lines | 98 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.208.1564444448.1985.bug-bash@gnu.org> (permalink) |
| References | <CAAZkfoK2hYq_qSkdKYc1on=+V4VEBgpgZW96sYNZwC+AMw7iTw@mail.gmail.com> <9EA25AF1-6D80-456A-81FA-6D908072E624@gmail.com> <a6a2b6a8-6151-78dc-41be-fc81250a40e5@archlinux.org> <db16f8b8-2a6d-a894-799d-f31827e72d92@inlv.org> <0aceaf50-5729-4ae2-c5be-a66a2ac6e6b8@archlinux.org> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LP9vlspLYXQwY4VLeOtJJx0B1KTARygNX" |
| X-Trace | usenet.stanford.edu 1564444449 2870 209.51.188.17 (29 Jul 2019 23:54:09 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=orion; t=1564444440; bh=AbkzmRqkdTxELczok17EhDxpThffX+gjI2T15x0u7nI=; h=Subject:To:References:From:Date:In-Reply-To; b=LURXfzl6mSe7pnmrMGg1nGRqRSFyJlQOM8yGWKRSd5uq2m4cc7miWy7Dl8YkbaW2L 1KohS1nAd+NzNIfb7DNbR7K18NutuPhqOTq+sjmTaTK8fP6Ovu21VhJYfDjp8fYXwD 9Y3NMfYDBxnwLpFgcFIeB4HlU3wpvEPWHYcUE29lMvLGn/mvlWsASSUgvxSe2/hmKE fQddCBhEmIdJTyl6iR62W/wqpf2VG6LHfInZB5fsNnAexLOMsYkSld8rAOS23z70y/ Bua2Gfi0JRBWNFpZCZQewMgzwPBbc3rFKxfXs2sXcTS0Xcteem8v3AUtxElutMqpJB 5/KTkWjGNt8G3020P/YJIikwTB6aVqVvyG9qpK4fymxL9QOm9+JiBYKYBl6A2gYENa 502J4QdnJX7fwNxg7ynvkCLDvd/c3j62ggMdhjVGK3RJ99M5WfUpmO4rYKzyRpYrmk LymWETj3DNAS0RKQMk18tPIPJVEJDV4+riBTjXNyLHu6tTJ4utqE9FLoBiONtaAnpO umg4GLHxiTEUYvdsr0W/u8M3T4+OmjSmtBct2hPtrRcaCcDJzk4tOkBjrqMoIHY4xD fA6AG8DFb1+akjG0rG+PiG7jEP382gCORBuxEd4R5hNW5Ma4r71xJnL8oPNoIFgxmC PvFT4J9TBb4VsZ2kehq8F2sw= |
| Openpgp | preference=signencrypt |
| X-Clacks-Overhead | GNU Terry Pratchett |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
| In-Reply-To | <db16f8b8-2a6d-a894-799d-f31827e72d92@inlv.org> |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] |
| X-Received-From | 88.198.91.70 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.23 |
| 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 | <https://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> |
| X-Mailman-Original-Message-ID | <0aceaf50-5729-4ae2-c5be-a66a2ac6e6b8@archlinux.org> |
| X-Mailman-Original-References | <CAAZkfoK2hYq_qSkdKYc1on=+V4VEBgpgZW96sYNZwC+AMw7iTw@mail.gmail.com> <9EA25AF1-6D80-456A-81FA-6D908072E624@gmail.com> <a6a2b6a8-6151-78dc-41be-fc81250a40e5@archlinux.org> <db16f8b8-2a6d-a894-799d-f31827e72d92@inlv.org> |
| Xref | csiph.com gnu.bash.bug:15271 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On 7/29/19 6:01 PM, Martijn Dekker wrote: > As others pointed out, it's the start of an array assignment, and > associative array indexes can contain newlines. Yeah, I think that was a bit of a retrospective lightbulb moment for a bunch of people on #bash > <(Process substitution) may look superficially like a fancy form of > redirection[*], but it's actually more akin to command substitution: the > command inside is run, and the substitution is replaced, not with that > command's output, but with a file name from which to read that command's > output (or, in the case of >(process substitution), a file name to which > to write that command's input). > > Because that command is empty in this instance, bash does not bother to > substitute a file name, and the <() is substituted by nothing. > > So, let's get rid of the function (because it is a distraction) and just > see how 'x=foo' is parsed in substitutions and redirections: Yeah, that much is obvious. But the point I was trying to make was that whatever the issue or misunderstanding was, it didn't seem to be as simple an issue as "because glob expansion", because I would expect a glob expansion to not care about where on the command line it gets expanded. Variable assignment, on the other hand, does make sense why it wouldn't be going into effect after the parser started reading a command (even a null element that does nothing at all). The fact that (array) variable assignment was in play here is what we all missed. :p -- Eli Schwartz Arch Linux Bug Wrangler and Trusted User
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: x[ Eli Schwartz <eschwartz@archlinux.org> - 2019-07-29 19:53 -0400
csiph-web