Bug 1001043 - Paths set twice in Gnome, if login shell is tcsh
Summary: Paths set twice in Gnome, if login shell is tcsh
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gnome-desktop
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Ray Strode [halfline]
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-26 11:52 UTC by masanari iida
Modified: 2014-03-31 18:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-31 18:16:22 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.