$REMOTEHOST is set to NULL on the local machine in csh and tcsh in RHEL 6

Solution Verified - Updated -

Issue

  • $REMOTEHOST is set empty on the local machine in csh and tcsh
  • Its expected that if tcsh can't determine the remote host (or that the user is not actually remote) that it wouldn't set this variable at all.

     $ env |grep REMOTE
    REMOTEHOST=
    $ who am i
    user pts/5        2011-01-07 18:12 (:0.0)
    user@system:log $ env |grep SHELL
    SHELL=/bin/tcsh
    
  • Having it set to "" can break third party applications.

Environment

Red Hat Enterprise Linux (RHEL) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.