Is it good shell programming practice to use read-only variables whenever possible or does it have any drawbacks? E.g. if I wanted to write some script that consists of multiple script files that make use of immutable file paths, would it make sense to declare the paths like that:
readonly LOGS
export LOGS
LOGS="/some/path"
Another question: Is it a good idea to split monolithic and tedious too read shell script code into separate files? Many thanks for your answers.