title: Strings and specific symbols in Bash
body: <p>I'm trying to write some commands in Bash.<br />
  I have a part of this command in <code>hosts</code> var.</p>
  <pre><code>hosts=&quot;one-1.stend.st,one-2.stend.st&quot;
  hosts=&quot;{$hosts}&quot; # I have to &quot;bracket&quot; this
  </code></pre>
  <p>The command is like this:</p>
  <pre><code>ipa service-allow-create....... hosts=$hosts
  </code></pre>
  <blockquote>
  <p>error: {one-1.stend.st,one-2.stend.st} - no such entry</p>
  </blockquote>
  <p>So yes, program understood brackets and all wrote but doesn't work.<br />
  When I write</p>
  <pre><code>ipa service-allow-create....... hosts={one-1.stend.st,one-2.stend.st}
  </code></pre>
  <p>all work as intended.</p>
  <p>But I can't leave command like this. I have to somehow use <code>$hosts</code> and round it in brackets.</p>
  <p>Help me please</p>