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 Newsgroups: gnu.bash.bug Subject: Re: rewriting a readonly var should exit Date: Tue, 15 Dec 2015 16:00:10 +0100 Organization: Gandi S.A. Lines: 54 Approved: bug-bash@gnu.org Message-ID: References: <566FF580.2060508@gandi.net> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ovOXMeFGvMu2BcbpV6G349jR0wvMJlElv" X-Trace: usenet.stanford.edu 1450191660 29939 208.118.235.17 (15 Dec 2015 15:01:00 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org, bash@packages.debian.org, bapt@gandi.net To: Andreas Schwab Envelope-to: bug-bash@gnu.org X-Virus-Scanned: Debian amavisd-new at mfiltercorp2.gandi.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.210 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:12023 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ovOXMeFGvMu2BcbpV6G349jR0wvMJlElv Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 12/15/2015 03:39 PM, Andreas Schwab wrote: > Aurelien ROUGEMONT writes: >=20 >> 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=3D"goodvalue" >> rovar=3D"badvalue" >> echo "You should not see this message" >=20 > You are not running the shell in posix mode. >=20 > Andreas. >=20 Oh true. sorry about the noise then. thought bash would behave the same as sh/dash/manyothersihavetested. Nevermind Thanks for the feedback. --=20 Aurelien Domain Name Registrar \o/ Hosting For Geeks and more... Gandi.net No Bullshit ! --ovOXMeFGvMu2BcbpV6G349jR0wvMJlElv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWcCsDAAoJEJYcW5i7sL03McIIAIs/YgAwKNMaOsKPPrsLybfB kRd2j4WHlkrCaBQFwcCR9hKdE2es4/e7cBPI+9dknv+fsXs9ZMTxe4EwIQOmZ2ag SCM67xV1W4+brW34cV+n6cCjFiyMMhGO9LxV/YnjtAq+Wa6QpaCNdbYWKH0Tu4TD FkmElGqmP4XxpBGPNMLFRChzJI5FSAWgGFUxnbYD9oMVNRrVN3kz2yri6I1IDqou E0CVwuDrjx8K0fwng+2fIwhhIiMLa4gzteiqEWd7X2T6zi2L6stM7AENyc5gdZ2Y JhUFGw7/tK9Ujp16vHbYl2vCkwQgsSqN0dj3Hzio0YelV1g0xZcDJo1/vwD+wI8= =8v47 -----END PGP SIGNATURE----- --ovOXMeFGvMu2BcbpV6G349jR0wvMJlElv--