Hello Chet,
thank you for your help and pointing to the posix behavior.
Quoting
https://www.gnu.org/software/bash/manual/html_node/Bash-POSIX-Mode.html
"[...]
A non-interactive shell exits with an error status if a variable assignment
error occurs when no command name follows the assignment sta
Hello,
I think I have found some unexpected behavior related to constants in
bash scripts. Here is a bash script as a short proof of concept.
#!/bin/bash
function foo
{
echo "A"
declare -r vconst="I am fixed."
echo "B"
declare vconst="new value"
echo "C"
Hello,
I think I have found some unexpected behavior related to constants in
bash scripts. I have attached the short proof of concept bash script.
Usually bash scripts continue when they face an error with one command
but this script shows some weired behavior. It exits all the functions
it has c