Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #12023

Re: rewriting a readonly var should exit

From Aurelien ROUGEMONT <beorn@gandi.net>
Newsgroups gnu.bash.bug
Subject Re: rewriting a readonly var should exit
Date 2015-12-15 16:00 +0100
Organization Gandi S.A.
Message-ID <mailman.2161.1450191659.31583.bug-bash@gnu.org> (permalink)
References <566FF580.2060508@gandi.net> <mvm37v393ow.fsf@hawking.suse.de>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 12/15/2015 03:39 PM, Andreas Schwab wrote:
> Aurelien ROUGEMONT <beorn@gandi.net> writes:
> 
>> 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"
> 
> You are not running the shell in posix mode.
> 
> Andreas.
> 
Oh true. sorry about the noise then. thought bash would behave the same
as sh/dash/manyothersihavetested.

Nevermind

Thanks for the feedback.

-- 
 Aurelien                                  Domain Name Registrar
   \o/                                     Hosting For Geeks and more...
    Gandi.net                                  No Bullshit !

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: rewriting a readonly var should exit Aurelien ROUGEMONT <beorn@gandi.net> - 2015-12-15 16:00 +0100

csiph-web