[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: rewriting a readonly var should exit
From: Aurelien ROUGEMONT <beorn () gandi ! net>
Date: 2015-12-15 15:00:10
Message-ID: 56702AFA.5020903 () gandi ! net
[Download RAW message or body]
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 !
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic