title: How do I break up an extremely long string literal in bash?
body: <p>I would like to embed a long command like this in a bash script:</p>
  
  <pre><code>mycommand \
      --server myserver \
      --filename extremely/long/file/name/that/i/would/like/to/be/able/to/break/up/if/possible \
      --otherflag \
      --anotherflag
  </code></pre>
  
  <p>with the long filename broken up.</p>
  
  <p>I could do this:</p>
  
  <pre><code># Insufficiently pretty
  mycommand \
      --server myserver \
      --filename extremely/long/file/name/\
  that/i/would/like/to/be/able/to/break/\
  up/if/possible \
      --otherflag \
      --anotherflag \
  </code></pre>
  
  <p>but it breaks the flow. I would <em>like</em> to be able to write this:</p>
  
  <pre><code># Doesn't work
  mycommand \
      --server myserver \
      --filename extremely/long/file/name/\
           that/i/would/like/to/be/able/to/break/\
           up/if/possible \
      --otherflag \
      --anotherflag
  </code></pre>
  
  <p>but that doesn't work because it breaks up the string literal.</p>
  
  <p>Is there a way to tell bash to break a string literal but ignore any leading spaces?</p>