Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16838
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Binarus <lists@binarus.de> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Incorrect / Inconsistent behavior with nameref assignments in functions |
| Date | Sat, 29 Aug 2020 06:58:04 +0200 |
| Lines | 39 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1650.1598677091.2469.bug-bash@gnu.org> (permalink) |
| References | <a20e4692-69b3-9836-4861-3e822e407ef7@binarus.de> <20200828152846.GI931@eeg.ccf.org> <CAH7i3Lpq3dWx55mGcuu4TK0gQaLCFBQwcoaeWR_-tunwxK6ijQ@mail.gmail.com> <8313a366-6ecd-5e87-5552-6a4e0fe18028@binarus.de> <CAH7i3LoPa-uepKMLMOvytgXSG9fvJed1hgV1VDGpK=kgm3vLrg@mail.gmail.com> <3c2f7371-2a0c-e41f-89d7-0a78f52bff87@binarus.de> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| X-Trace | usenet.stanford.edu 1598677091 3911 209.51.188.17 (29 Aug 2020 04:58:11 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | "bug-bash@gnu.org" <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| X-Envelope-To | <bug-bash@gnu.org> |
| DKIM-Signature | v=1; a=rsa-sha256; c=simple/simple; d=binarus.de; s=b201601; t=1598677085; bh=VCdWiY+E9icWD0flbf00oFOvFsPtzo5XllLUeiv6FN8=; h=Subject:To:References:From:Date:In-Reply-To:From:Reply-To:Subject: Date:To:Cc:Resent-Date:Resent-From:Resent-To:Resent-Cc:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; b=AsepisjiNzSXYz0rM2dEh1qyOKvlpXN2UidqfBkm8/UPtdj1VRGR0Z8lrzeu9Yk7o iW6EvHumfuDp3RPHh3S6VCgmTMvHo398cO8FPY1QiyMcjOqZgHkBKT7By+tXtRoeHF 1W9NkEiJ4ky+IJ1ItuE7mI9QzkXoji/LuU32hmJsSH9zKeranBEj6CkCi+SpcukOSX GceIwP3tC33B5ANLkYpGnD+J8r3ZJRRnK9deD4N8OP0FSNCOfjmXeD9JHXZNuq6av3 Kt2NX1EavOhwKUZLs0J3Ul1ngpsZEffzTdVl58icY8mCxQZ35e5d2xEYRM7LHuD4d+ DjDemUj7RFrCHbsLu0czY5iXGWdn1bz7iPfiu7h0Dc/8lyNDgrbCRzn/qh1t0oe8Dj cL3t5FDrHnM0Eq3UsLHsTMpR1GOtLdStks7Ec/SfYsDBzTw/OQDC20dGZDsbwHq5tv eirXdjZkNkr2raH0aXPU44SdOdrrAij/QqVMhLT0k1j4YuiHddrtfESNouSYl675IV 3GzZsgxy/vFRVqLqi2AIGNo7Cb0wP1B/IJ1rnbGlbwTVdcEfOejDOR4qDJPX6khZhr WLzoTXqZmj5+/H5+uHBp9RAcbEUaNKEJleusKvM7p5PkpbO61B1Du7TYQ+rCTKZqZw /Fq/JV/ncZ+fvvmy4ou1AwhI= |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
| In-Reply-To | <CAH7i3LoPa-uepKMLMOvytgXSG9fvJed1hgV1VDGpK=kgm3vLrg@mail.gmail.com> |
| Content-Language | en-US |
| X-Bin-MAIL-FROM | <lists@binarus.de> |
| X-Bin-RCPT-TO | <bug-bash@gnu.org> |
| Received-SPF | pass client-ip=144.76.90.229; envelope-from=lists@binarus.de; helo=odysseus.binarus.de |
| X-detected-operating-system | by eggs.gnu.org: First seen = 2020/08/29 00:58:05 |
| X-ACL-Warn | Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] |
| X-Spam_score_int | -28 |
| X-Spam_score | -2.9 |
| X-Spam_bar | -- |
| X-Spam_report | (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.809, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no |
| X-Spam_action | no action |
| 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 | <3c2f7371-2a0c-e41f-89d7-0a78f52bff87@binarus.de> |
| X-Mailman-Original-References | <a20e4692-69b3-9836-4861-3e822e407ef7@binarus.de> <20200828152846.GI931@eeg.ccf.org> <CAH7i3Lpq3dWx55mGcuu4TK0gQaLCFBQwcoaeWR_-tunwxK6ijQ@mail.gmail.com> <8313a366-6ecd-5e87-5552-6a4e0fe18028@binarus.de> <CAH7i3LoPa-uepKMLMOvytgXSG9fvJed1hgV1VDGpK=kgm3vLrg@mail.gmail.com> |
| Xref | csiph.com gnu.bash.bug:16838 |
Show key headers only | View raw
On 28.08.2020 22:08, Oğuz wrote: > > 5.1 is still in beta phase. I see. I couldn't use it anyway because the script in question (where I make heavy use of namerefs and nested function calls) is for production, and I won't use software which I need to compile myself on those servers for security reasons (I would need to have to check for security updates and probably compile and install each new version myself). Switching those servers to a rolling release distribution like Arch is not an option either. > > With 5.1, do both scripts behave like SCRIPT 1 with the older versions > or like SCRIPT 2 with the older versions? > > > They behave like SCRIPT 2 as expected, local `myArray' is populated with > the contents of global `myArray'. _identical_ was the wrong word though, > the second script doesn't copy the integer attribute. This is good news. At least, we can expect that problem to be solved in production releases in the near future. If the debian folks follow the notion that the problem is a bug, they will eventually backport the respective changes. If not, I'll probably have to wait at least 5 years until bash 5.1 arrives in debian (the current testing and even the current unstable obviously will include 5.0). The second script not copying the integer attribute is no problem. We can just use the first script :-) Once again, thank you very much for all your effort and testing! Best regards, Binarus
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Incorrect / Inconsistent behavior with nameref assignments in functions Binarus <lists@binarus.de> - 2020-08-29 06:58 +0200
csiph-web