On 12/15/2015 03:39 PM, Andreas Schwab wrote:
> Aurelien ROUGEMONT 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="goodv
Aurelien ROUGEMONT 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 shoul
Are you running BASH in POSIX mode? That's a option.
Example:
[tsh009@it-johnmckown-linux junk]$ cat ro.sh
#!/bin/bash
readonly x="x"
x="y"
echo "sno"
[tsh009@it-johnmckown-linux junk]$ ./ro.sh
./ro.sh: line 3: x: readonly variable
sno
[tsh009@it-johnmckown-linux junk]$ vim ro.sh
[tsh009@it-johnm
-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