title: Variables get overwritten when concatenated
body: <p>I wrote this little bash script:</p>
  
  <pre><code>#!/bin/bash -x
  runDirectory="/mnt/sequences_tmp/melody_rnn/logdir/run_"
  currName=$1
  magenta1="bazel run //magenta/models/melody_rnn:melody_rnn_train -- --config=attention_rnn --run_dir="
  echo $magenta1
  magenta2="$magenta1$runDirectory"
  echo $magenta2
  magenta3="$magenta2$currName"
  echo $magenta3
  </code></pre>
  
  <p>so that, if I start the script with the parameter "music" the output should be as follows:</p>
  
  <pre><code>bazel run //magenta/models/melody_rnn:melody_rnn_train -- --config=attention_rnn --run_dir=
  
  bazel run //magenta/models/melody_rnn:melody_rnn_train -- --config=attention_rnn --run_dir=/mnt/sequences_tmp/melody_rnn/logdir/run_
  
  bazel run //magenta/models/melody_rnn:melody_rnn_train -- --config=attention_rnn --run_dir=/mnt/sequences_tmp/melody_rnn/logdir/run_music
  </code></pre>
  
  <p>but the output I really get is:</p>
  
  <pre><code>bazel run //magenta/models/melody_rnn:melody_rnn_train -- --config=attention_rnn --run_dir=
  
  /mnt/sequences_tmp/melody_rnn/logdir/run_ody_rnn_train -- --config=attention_rnn --run_dir=
  
  musicsequences_tmp/melody_rnn/logdir/run_ody_rnn_train -- --config=attention_rnn --run_dir=
  </code></pre>
  
  <p>As you can see, instead of appending the next variable/text it instead is added to the front of the last used variable, overwriting the old variable in the progress.</p>
  
  <p>Does anyone know what my error could be? I haven't found any similar questions on here yet (sadly)</p>