title: Capturing colorized output to a bash variable
body: <p>I want to capture the color output from <code>git status</code> in a variable and print it later.</p>
  
  <p>So far I have come up to:</p>
  
  <pre><code>status=$(git status -s)
  echo -e "$status"
  </code></pre>
  
  <p>The above script keeps the newline intact (thx to <a href="https://stackoverflow.com/q/613572/146272">Capturing multiple line output into a Bash variable</a>) but strips the color from the output.</p>
  
  <p><strong>Is there a way to keep the color in the variable and echo it?</strong></p>