Bug 67848 - Incorrect setenv syntax in lang.csh
Summary: Incorrect setenv syntax in lang.csh
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-07-02 22:36 UTC by Need Real Name
Modified: 2014-03-17 02:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-07-02 22:36:29 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2002-07-02 22:36:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-34smp i686)

Description of problem:
/etc/profile.d/lang.csh contains the erroneous syntax: 
  setenv LANG=$GDM_LANG
which makes a mess for csh or tcsh. I upgraded from RH6.2 to RH7.2. Under tcsh I
have the environment variable "LANG=en_US" (really! That is the name, not the
name and value!) and it is set to null, as well as the variable "LANG" set to
"en_US". When all this passes into sh, I have only the environment variable
"LANG" but the value is "en_US=". This is an illegal locale and causes much
grief (Perl, Netscape, Emacs, etc.) Correcting the bogus line in lang.csh fixes
the problem entirely. Interestingly, on another machine with a clean
installation of RH7.2, the GDM_LANG variable is not used, so the problem does
not surface.

This could plausibly be the cause for bug 55663.  Maybe?

How reproducible:
Always

Steps to Reproduce:
1.If $GDM_LANG is set before sourcing /etc/profile.d/lang.csh
2.Pass from tcsh to sh
3.check value of $LANG

Comment 1 Bill Nottingham 2002-07-17 05:09:29 UTC
This is fixed in the current CVS initscripts, and the 7.3 initscripts.


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