title: read -a unknown option
body: <p>I'm executing shell commands using python script. This is the command:</p>
  
  <pre><code>ntpservlist=( $OMC_NTPSERV ) &amp;&amp; IFS=',' read -ra ntplist &lt;&lt;&lt; "$ntpservlist" &amp;&amp;  for i in "${ntplist[@]}" ; do echo "server $i" &gt;&gt; /etc/inet/ntp.conf ; done
  </code></pre>
  
  <p>When I execute the command using a script, I get the following error:</p>
  
  <pre><code>/bin/sh[1]: read: -a: unknown option
  Usage: read [-ACprsv] [-d delim] [-u fd] [-t timeout] [-n count] [-N count]
              [var?prompt] [var ...]
  </code></pre>
  
  <p>But if I execute the same command using the command line, it executes correctly without any errors. </p>
  
  <p>I'm using:</p>
  
  <pre><code>proc = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
      (out, err) = proc.communicate()
  </code></pre>
  
  <p>to execute the command.</p>