title: Preserve single quote within double quotes when running bash script
body: <p>I have bash script (named main.sh). Which looks something like:</p>
  <pre><code>#!/usr/bin/env bash
  
  java -jar some.jar --test='{&quot;prop&quot;: &quot;My best 'app'&quot;}'
  </code></pre>
  <p>When I run this bash script. I get:</p>
  <pre><code>bash -x main.sh
  + java -jar some.jar '--test={&quot;prop&quot;: &quot;My best app&quot;}'
  </code></pre>
  <p>The single quotes around app are missing. How can I modify this bash script such that the single quotes around app are preserved?</p>
  <p>I did check this question: <a href="https://stackoverflow.com/questions/38876185/escape-single-quote-within-double-quote-within-single-quote">Escape single quote within double quote within single quote</a> but it didnt solve my issue.</p>