Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 669176

Summary: $REMOTEHOST is set empty on the local machine in csh and tcsh
Product: Red Hat Enterprise Linux 6 Reporter: Bryan Mason <bmason>
Component: tcshAssignee: Vojtech Vitek <vvitek>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: bnater, hripps, kevin.constantine, ovasik, syeghiay, vvitek
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
On a local machine, tcsh set the "REMOTEHOST" environment variable to an empty string, even though this variable should be only set on remote machines. This error has been fixed, and "REMOTEHOST" is no longer set on a local machine.
Story Points: ---
Clone Of: 669171
: 688175 (view as bug list) Environment:
Last Closed: 2011-02-02 15:31:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 669171    
Bug Blocks: 688175    
Attachments:
Description Flags
Proposing patch
none
Slightly improved version of previous patch none

Description Bryan Mason 2011-01-12 19:48:46 UTC
+++ This bug was initially created as a clone of Bug #669171 +++

Description of problem:

    The $REMOTEHOST environment variable is set to an empty string
    when logging onto a local system in csh and tcsh.  It should be
    left undefined.

Version-Release number of selected component (if applicable):

    tcsh-6.17-8.el6

How reproducible:

    100%

Steps to Reproduce:

    1. Start tcsh or csh on a local console
    2. Run "echo $REMOTEHOST"
  
Actual results:

    $ echo $REMOTEHOST

    [note blank line]

Expected results:

    $echo $REMOTEHOST
    REMOTEHOST: Undefined variable.

Additional info:

    The expected results occur on a RHEL 5 system, but the actual
    results occur on RHEL 6 and Fedora Rawhide.  This could easily be
    considered a regression.

Comment 1 Vojtech Vitek 2011-01-12 20:06:04 UTC
Created attachment 473125 [details]
Proposing patch

Comment 3 Vojtech Vitek 2011-01-14 12:04:01 UTC
Created attachment 473507 [details]
Slightly improved version of previous patch

Comment 4 Vojtech Vitek 2011-01-18 10:41:30 UTC
The patch has been accepted by upstream (6.17.03b).

Comment 12 Jaromir Hradilek 2011-01-27 16:00:12 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
On a local machine, tcsh set the "REMOTEHOST" environment variable to an empty string, even though this variable should be only set on remote machines. This error has been fixed, and "REMOTEHOST" is no longer set on a local machine.

Comment 13 Branislav NĂ¡ter 2011-01-28 17:09:58 UTC
Bugfix was successfully verified tcsh-6.17-11.el6 package on i386, x86_64, s390x and ppc architectures. REMOTEHOST variable is no more set when running shell from local machine.

Comment 14 errata-xmlrpc 2011-02-02 15:31:25 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0193.html