title: How to set multiple environment variables from output of other command in bash?
body: <p>I set a variable that contains multiple values. (this is what I get from <code>heroku config --shell</code>, redacted)<br />
  The command to save command output was</p>
  <pre class="lang-sh prettyprint-override"><code>envvars=`heroku config --shell -a heroku-app`
  </code></pre>
  <p>And <code>echo &quot;$envvars&quot;</code> result is like this:</p>
  <pre><code>BH_SERVER=000000000000000000
  DATABASE_URL='postgres://stringno1:randomstring1@someserver.com:5432/randomstring2'
  DISCORD_TOKEN=some.veryveryveryvery.long.token.string
  EXM_SERVER=000000000000000001
  MUTED_SERVER='000000000000000002, 000000000000000003'
  SUPER_USER='000000000000000004, 000000000000000005'
  TEST_SERVER=000000000000000006
  TZ=Asia/Seoul
  </code></pre>
  <p>Now I want to set these values to environment variables. These <strong>must not</strong> be permanant because these are only needed by python app which will be executed later in script. I think I can use <code>=</code> as delimiter for distinguish key and value but not 100% sure about that. (I don't know how heroku convar works well)</p>
  <p>I expect these-like output.</p>
  <pre class="lang-sh prettyprint-override"><code>echo $BH_SERVER
  # 000000000000000000
  echo $DATABASE_URL
  # postgres://stringno1:randomstring1@someserver.com:5432/randomstring2
  # Note that there is no ' in start and end of line
  echo $DISCORD_TOKEN
  # some.veryveryveryvery.long.token.string
  # Note that . is still there.
  echo $MUTED_SERVER
  # 000000000000000002, 000000000000000003
  # Even if there is space in string, it should be treated as one line
  # Also, there is no ' in start and end of line
  echo $TZ
  # Asia/Seoul
  # / is not interpreted. I think this is normal.
  </code></pre>
  <p>There are some already-answered question but I don't find any answer that match my condition.</p>
  <p>I put <code>git-bash</code> tag because I am working on Git Bash but I think solution of this question would be same as Bash.</p>