title: Is it possible to define a variable as static in shell bash function like C?
body: <p>In C, I can define a static variable in a function like this</p>
  
  <pre><code>int func() {
      static int var=0
      .....
  }
  </code></pre>
  
  <p>Is there something equivalent to that in shell bash linux?</p>
  
  <p>Is it possible to define a local variable of the bash shell function as static?</p>