Bug 1001043

Summary: Paths set twice in Gnome, if login shell is tcsh
Product: Red Hat Enterprise Linux 6 Reporter: masanari iida <masanari_iida>
Component: gnome-desktopAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3CC: tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 18:16:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description masanari iida 2013-08-26 11:52:45 UTC
Description of problem:
If user's login shell is tcsh and the user set PATH
into .cshrc or .tcshrc, then the user see the PATH twice
in Gnome-terminal or xterm

Version-Release number of selected component (if applicable):
RHEL6.3
gnome-desktop-2.28.2-9.el6.x86_64
gnome-terminal-2.31.3-7.el6.x86_64
tcsh-6.17-19.el6_2.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install RHEL6.3. Install tcsh.
2. Create a user.
3. Set the user's login shell as tcsh.
4. Set the path into ~/.cshrc.
setenv PATH ${PATH}:/home/iida1/bin

5. Login to GNOME.
6. Open gnome-terminal or xterm.
7. env |grep PATH

Actual results:
PATH=/usr/local/bin:/usr/bin:/bin:/home/iida1/bin:/home/iida1/bin

Expected result:
PATH=/usr/local/bin:/usr/bin:/bin:/home/iida1/bin

Additional info:
Login from ssh, and env |grep PATH, it display expected result.
The symptom is reproduced with gnome-terminal and xterm.
The symptom reproduced with .cshrc and .tcshrc.

Business impact: Low

Comment 2 Ray Strode [halfline] 2014-02-12 04:35:14 UTC
i think this is probably by design.   When you log in, a login shell gets run.  When you start a terminal, an interactive shell gets started. In both cases, I believe .cshrc will get sourced.

you can put:

switch(":${PATH}:")
    case "*:/home/iida1/bin:*":
    breaksw
    default:
    ...set path here ...
endsw

to filter the dupes i believe.

Comment 3 RHEL Program Management 2014-03-31 18:16:22 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.