title: Bash curl how to set up variable in header?
body: <p>I faced with problem when created simple bash script, so, my goal - fect jwt token and will use tokn in next query, For that first curl fetch credentials from <code>login.json</code> file and then set it in <code>result.json</code>, then reed <code>token</code> key and set it in variable <code>tokenValue</code> then I want to set it on bext curl in header but when I debugged I did not get <code>Authorization</code> header, why ? When I substitute the variable manually (like <code>&quot;Authorization: Bearer test_token&quot;</code>) - it's worked, I faced with <code>HTTP_AUTHORIZATION=Bearer test_token</code></p>
  <pre><code>curl --request POST -sL \
       --url 'http://auth.loc/api/login'\
       --output './result.json' \
       --header &quot;Content-Type: application/json&quot; \
       -d &quot;@login.json&quot; \
  
  tokenValue=$(jq -r '.token' './result.json')
  bearerToken=&quot;Authorization: Bearer &quot;$tokenValue
  echo 'fff' + $bearerToken
  
  curl --request GET -sL \
       --url 'http://qbee.local/api/v2/grouptree?_format=json'\
       --output './grouptree_result.json' \
       --header $bearerToken \
  
  echo &quot;$(cat grouptree_result.json)&quot;
  </code></pre>
  <p><code>echo 'fff' + $bearerToken</code> works fine, I faced with correct data in cli</p>