title: CentOS 7 sudo >> -E: command not found
body: <p>I'm working on CentOS 7 and regular sudo commands (e.g. sudo yum update, etc.) are working fine. However, one of my sudo commands require to preserve the environment variables, so I used:</p>
  
  <pre><code>sudo -E ./build/unit-tests
  </code></pre>
  
  <p>and I get this error:</p>
  
  <pre><code>/var/tmp/sclyZMkcN: line 8: -E: command not found
  </code></pre>
  
  <p>It appears sudo is not recognizing the -E command on CentOS 7. What can I do in this case? Any alternatives or possible fix?</p>