title: Use of read-only variables in shell scripts
body: <p>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:</p>
  
  <pre><code>readonly LOGS
  export LOGS 
  LOGS="/some/path"
  </code></pre>
  
  <p>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.</p>