title: source command didn't export variables to the zsh environment using shell script
body: <p>I have a really simple shell script which work really well on bash and export the varialbes to the current bash enviornment but unfortunately it didn't export the variables to the zsh enviornment.</p>
  
  <pre><code>#!/bin/bash
  export AWS_ACCESS_KEY_ID=$(echo $RESULT | jq --raw-output .Credentials.AccessKeyId)
  export AWS_SECRET_ACCESS_KEY=$(echo $RESULT | jq --raw-output .Credentials.SecretAccessKey)
  export AWS_SECURITY_TOKEN=$(echo $RESULT | jq --raw-output .Credentials.SessionToken)
  </code></pre>
  
  <p>and I am running this script like this:</p>
  
  <pre><code>source myscript.sh
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>. ./myscript.sh
  </code></pre>
  
  <p>Please advise, that how I can make it work on the zsh environment?</p>