Bug 3626 - Misleading comments in sample bash_profile and bashrc
Summary: Misleading comments in sample bash_profile and bashrc
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: bash
Version: 6.0
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-06-21 23:01 UTC by Telsa Gwynne
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 1999-07-28 06:26:26 UTC
Embargoed:


Attachments (Terms of Use)

Description Telsa Gwynne 1999-06-21 23:01:50 UTC
The /etc files for bash profile and bashrc have comments at the top which suggest that all environment variables should go in the bash_profile, not the bashrc. If you find a variable that needs setting (I had to set COLORFGBG for something) and put it in .bash_profile, it won't get picked up by any new bash you spawn unless you specifically say it should be a login shell or tell it to source the profile. This means that any gnome-terminals or xterminals you start don't pick it up. Presumably the answer is to put the variable into the profile, yes, but the comments on the profile say they should go in the rc. Trivial, yes, but trivial to fix, at least :)

Comment 1 Telsa Gwynne 1999-06-21 23:25:59 UTC
I'm a twit and sending you rubbish. Switch profile and rc in the penultimate sentence starting "presumably the answer..", and colour me embarrassed. I intended to say that as variables you want to be picked up should go in bashrc not profile, the comments in the two sample files implying variables live in profile should be updated. Apologies. I did proof-read before sending; I just didn't do it very well. Now I just hope this gets added to bug 3626 and not made into a new one.

Comment 2 Jay Turner 1999-06-22 14:34:59 UTC
This issue has been forwarded to a developer for further review.

Comment 3 Cristian Gafton 1999-07-28 06:26:59 UTC
The comments are correct as far as I can tell. The treatment of the
dot files in user home directories is different (and somewhat
documented in the bach info pages)


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