title: assign local variable from function in linux bash a new value
body: <p>I have a <code>linux bash</code> script with a function:</p>
  
  <pre><code>myfunctiona () 
  {
    local MYVAR1="one"
    local MYVAR2="two"
    echo $MYVAR1
    # The line beneath is the line in question!
    local MYVAR1=$MYVAR1$MYVAR2       
  }
  </code></pre>
  
  <p>When I want to give the <code>LOCAL</code> variable <code>MYVAR1</code> in the function <code>myfunctiona</code> a new value, do I have to write </p>
  
  <pre><code>local MYVAR1=$MYVAR1$MYVAR2
  </code></pre>
  
  <p>or can I also write </p>
  
  <pre><code>MYVAR1=$MYVAR1$MYVAR2
  </code></pre>
  
  <p>With the second line without "local" do I create a global variable with the same name?</p>