title: Bash script behaves strange in docker environment when using variables
body: <p>here are two simple command lines:</p>
  <pre><code>p=123
  echo $p 456
  </code></pre>
  <p>If run this code on the command line inside docker, I get the following output:</p>
  <pre><code>123 456
  </code></pre>
  <p>All right so far. Now, I save this code in a test.sh and get the following output after running <code>sh test.sh</code>:</p>
  <pre><code>456
  </code></pre>
  <p>The variable output disappeared. Let's change <em>test.sh</em> to:</p>
  <pre><code>p=123
  echo 456 $p
  echo 456 $p $p
  echo 456 $p $p $p
  echo 456 $p $p $p $p $p $p $p $p $p $p $p $p
  </code></pre>
  <p>You'll never guess the output, but it is the following:</p>
  <pre><code>456 123
  123123
  123123
  123123
  </code></pre>
  <p>The first line is fine. But what is going on in lines 2 and others?!!!
  Looking forward to your ideas! Because I could not find any hints on Google.</p>