Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #12020
| Path | csiph.com!au2pb.net!feeder.erje.net!2.us.feeder.erje.net!enother.net!enother.net!news.glorb.com!usenet.stanford.edu!not-for-mail |
|---|---|
| From | Aurelien ROUGEMONT <beorn@gandi.net> |
| Newsgroups | gnu.bash.bug |
| Subject | rewriting a readonly var should exit |
| Date | Tue, 15 Dec 2015 12:12:00 +0100 |
| Organization | Gandi S.A. |
| Lines | 71 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.2155.1450189555.31583.bug-bash@gnu.org> (permalink) |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="B6RI01OiHS08tfSBWNRlgHWAKxqtSBa0e" |
| X-Trace | usenet.stanford.edu 1450189555 28543 208.118.235.17 (15 Dec 2015 14:25:55 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | bug-bash@gnu.org, bash@packages.debian.org |
| Envelope-to | bug-bash@gnu.org |
| X-Virus-Scanned | Debian amavisd-new at mfiltercorp2.gandi.net |
| X-Enigmail-Draft-Status | N1110 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0 |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] |
| X-Received-From | 217.70.183.210 |
| X-Mailman-Approved-At | Tue, 15 Dec 2015 09:25:54 -0500 |
| 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:12020 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -I. -I../. -I.././include -I.././lib
-D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux clamavsig1 3.16.0-4-amd64 #1 SMP Debian
3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
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
[1]
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_01
--
Aurelien Domain Name Registrar
\o/ Hosting For Geeks and more...
Gandi.net No Bullshit !
Back to gnu.bash.bug | Previous | Next | Find similar
rewriting a readonly var should exit Aurelien ROUGEMONT <beorn@gandi.net> - 2015-12-15 12:12 +0100
csiph-web