title: How can you hide env variables when executing a bash script with -xe?
body: <p>I have a bash script that I execute with <code>/bin/sh -xe script.sh</code> and I need to capture its output.</p>
  
  <p>The problem is that inside the script I use some ENV variables that I would like to keep them from being displayed in the output.
  Is there any way to do this?</p>
  
  <p>Ie. if my script has <code>touch $MY_ENV_VAR</code> and MY_ENV_VAR=ok the output of <code>/bin/sh -xe script.sh</code> will be <code>touch ok</code>.</p>
  
  <p>Is there any way to keep env vars from being replaced in the output of <code>-x</code>? So I would just get <code>+ touch $MY_ENV_VAR</code> back.</p>