title: bash: xargs passing variable
body: <p>How can a global script variable be passed to the command of xargs? I tried it this way:</p>
  
  <pre><code>TEST=hallo2
  echo "hallo" | xargs sh -c 'echo passed=$1 test=$TEST' sh
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>passed=hallo test=
  </code></pre>
  
  <p>I know I could use the <code>{}</code> token but I need to do it this way!</p>
  
  <p>I'm using <code>bash</code>.</p>