title: bash script complains about file name too long
body: <p>So I have a script that does this (jq is a command line JSON processor):</p>
  
  <pre><code>echo "Getting LB Node IDs"
  echo $LB_STATUS | jq '.loadBalancer.nodes[] .id'
  </code></pre>
  
  <p>The output of the last line is:</p>
  
  <pre><code>1
  2
  3
  </code></pre>
  
  <p>But when I try and assign it to an array:</p>
  
  <pre><code>echo "Creating an Array"
  nodeIdArray=($($LB_STATUS | jq '.loadBalancer.nodes[] .id'))
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>./myShellScript.sh: line 53: {"loadBalancer":{"name":"lbName","id":1,"protocol":"HTTP","port":80,"algorithm":"WEIGHTED_LEAST_CONNECTIONS","status":"ACTIVE","cluster":{"name":"ztm-n22.dfw1.lbaas.rackspace.net"},"nodes":[{"address":"1.2.3.4","id":1,"type":"PRIMARY","port":80,"status":"ONLINE","condition":"ENABLED","weight":1},{"address":"1.2.3.4","id":2,"type":"PRIMARY","port":80,"status":"ONLINE","condition":"ENABLED","weight":1},{"address":"1.2.3.4","id":3,"type":"PRIMARY","port":80,"status":"ONLINE","condition":"ENABLED","weight":1}],"timeout":30,"created":{"time":"2016-06-28T22:14:24Z"},"healthMonitor":{"type":"CONNECT","delay":10,"timeout":5,"attemptsBeforeDeactivation":2},"sslTermination":...&lt;A BOAT LOAD MORE JSON I CUT OUT FOR BREVITY'S SAKE&gt;: File name too long
  </code></pre>
  
  <p>SO $LB_STATUS | jq '.loadBalancer.nodes[] .id' produces a few numbers while trying to assign those numbers to an array doesn't work</p>