title: Batch mode SSH gives error "TERM environment variable not set"
body: <p>I made sure that TERM was defined in the .bashrc.</p>
  
  <p>However, when running ssh in batch mode I get:</p>
  
  <pre><code> $ ssh pc-lab7 "echo $TERM; echo $0"
      TERM environment variable not set.
      linux
      -bash
  </code></pre>
  
  <p>If I run ssh in interactive mode, I do not see this error.</p>
  
  <p>How can I eliminate this error message?</p>