<p>When i run the helm install command the below line gives me the error:</p>

<pre><code>args: [while [ 1 ]; do echo "hi" ; sleep 1; done;]
</code></pre>

<p>Error:</p>

<pre><code>Error: YAML parse error 
converting YAML to JSON: yaml: line 27: did not find expected ',' or ']'
</code></pre>

<p>Square brackets have special meaning in YAML (they indicate a flow sequence, i.e. an inline array). You need to quote that scalar (string):</p>



<pre class="lang-yaml prettyprint-override"><code>args: [ 'while [ 1 ]; do echo "I am awake" ; sleep 1; done;' ]
</code></pre>

<p>...or make it a block scalar and use the literal indicator, <code>|</code>:</p>

<pre class="lang-yaml prettyprint-override"><code>args:
  - |
    while [ 1 ]; do echo "I am awake" ; sleep 1; done;
</code></pre>

<p>Both of these <a href="http://yaml-online-parser.appspot.com/?yaml=-+args%3A+%5B+%27while+%5B+1+%5D%3B+do+echo+%22I+am+awake%22+%3B+sleep+1%3B+done%3B%27+%5D%0A-+args%3A%0A++++-+%7C%0A++++++while+%5B+1+%5D%3B+do+echo+%22I+am+awake%22+%3B+sleep+1%3B+done%3B&amp;type=json" rel="nofollow noreferrer">produce the same JSON</a>:</p>

<pre class="lang-json prettyprint-override"><code>{
  "args": [
    "while [ 1 ]; do echo \"I am awake\" ; sleep 1; done;"
  ]
}
</code></pre>
