Bug 5046 - /etc/profile.d/lang.csh doesn't interprets "export" command in ~/.i18n
: /etc/profile.d/lang.csh doesn't interprets "export" command in ~/.i18n
Status: CLOSED DUPLICATE of bug 2618
: Sisyphus
(All bugs in Sisyphus/setup)
: unstable
: all Linux
: P2 normal
Assigned To:
  Show dependency tree
Reported: 2004-08-22 00:14 by
Modified: 2007-04-21 16:19 (History)

lang.csh.diff (697 bytes, patch)
2004-11-15 16:15, Dmitry V. Levin
no flags Details | Diff


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

Description From 2004-08-22 00:14:51
.i18n file provided by etcskel package is actually shell script. /etc/profile.
d/lang.csh converts all lines having "NAME=VALUE" format to "setenv NAME VALUE". 
But additionally i18n may contain "export" command that is now not suppressed 
nor converted by lang.csh and causes error when our primary shell is tcsh.

This bug exists also in M22 classic initscripts package.

Steps to Reproduce:
1. Change your shell to tcsh
2. Check that ~/.i18n contain export command (this is so for russian locale)
3. Login

Actual Results:  
"export: Command not found" error on tcsh login.

Expected Results:  
no error message.
------- Comment #1 From 2004-11-15 16:15:48 -------
Created an attachment (id=642) [details]

Please try this patch.
------- Comment #2 From 2004-11-15 23:44:04 -------

*** This bug has been marked as a duplicate of 2618 ***