title: “) Syntax error Invalid arithmetic operator (error token is ”
body: <p>I have gone through all the possible similar questions on SO already &amp; couldn't figure out the error.</p>
  
  <pre><code>echo $select_app
  echo $bitmap
  app_itx='echo $(($select_app &amp; $bitmap))'
  </code></pre>
  
  <p>This script worked on machine with <em>bash version 4.1.10(4)-release (i686-pc-cygwin).</em></p>
  
  <p>but doesn't work on machine with <em>version 4.4.12(3)-release (x86_64-unknown-cygwin).</em></p>
  
  <p>Both machines are 64-bit running windows 7 &amp; windows 10 respectively. </p>
  
  <p>output of script :</p>
  
  <p>0x04</p>
  
  <p>1</p>
  
  <p>&amp; 1“) Syntax error Invalid arithmetic operator (error token is ”</p>