Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #12021
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Chet Ramey <chet.ramey@case.edu> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: rewriting a readonly var should exit |
| Date | Tue, 15 Dec 2015 09:29:17 -0500 |
| Lines | 37 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.2156.1450189768.31583.bug-bash@gnu.org> (permalink) |
| References | <566FF580.2060508@gandi.net> |
| Reply-To | chet.ramey@case.edu |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | usenet.stanford.edu 1450189768 28552 208.118.235.17 (15 Dec 2015 14:29:28 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | chet.ramey@case.edu |
| To | Aurelien ROUGEMONT <beorn@gandi.net>, bug-bash@gnu.org, bash@packages.debian.org |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
| In-Reply-To | <566FF580.2060508@gandi.net> |
| X-Mirapoint-Virus-RAPID-Raw | score=unknown(0), refid=str=0001.0A020203.567023BD.0188,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 |
| X-Mirapoint-Loop-Id | 48e9b7ac30281faa60cdb980cd66a401 |
| X-Junkmail-Whitelist | YES (by domain whitelist at mpv2-2015.case.edu) |
| X-Mirapoint-Virus-RAPID-Raw | score=unknown(0), refid=str=0001.0A020206.567023BE.02B8,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2015-08-12 04:07:17, dmn=2011-05-27 18:58:46 |
| X-Mirapoint-Loop-Id | 66eb0ccc758cededf54a999ffdcf1183 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] |
| X-Received-From | 129.22.103.227 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.14 |
| 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:12021 |
Show key headers only | View raw
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/15/15 6:12 AM, Aurelien ROUGEMONT wrote: > Bash Version: 4.3 > Patch Level: 30 > Release Status: release > > Description: > in the posix shell specification [1] when a script tries to to > overwrite a readonly variable it should crash the script. > > Repeat-By: > #!/bin/bash > readonly rovar="goodvalue" > rovar="badvalue" > echo "You should not see this message" > > Fix: > the bash interpreter should exit when the readonly var is being asked > for an overwrite The shell exits in this case when it is running in Posix mode. - -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlZwI7IACgkQu1hp8GTqdKsyxACgk42MVS+jQeKSxZ6IoKQu0yaZ ZDoAn3HrbC7JYivv3fOIS1akKf2XNFkh =18vR -----END PGP SIGNATURE-----
Back to gnu.bash.bug | Previous | Next | Find similar
Re: rewriting a readonly var should exit Chet Ramey <chet.ramey@case.edu> - 2015-12-15 09:29 -0500
csiph-web