[Bug 1190142] New: tcsh error: LANG: Undefined variable
http://bugzilla.opensuse.org/show_bug.cgi?id=1190142 Bug ID: 1190142 Summary: tcsh error: LANG: Undefined variable Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: comes@naic.edu QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- if as root I run the command: su - <user> where <user> has tcsh as login shell, I got this error: LANG: Undefined variable and various .csh files do not get sourced. I tracked the problem to the file: /usr/etc/profile.d/lang.csh from package: aaa_base Such file contains the following line: if (${?LANG}) set _save=$LANG the purpose is clear: if the variable LANG is defined then assign its value to _save. However variable substitution happens anyway for the whole line causing an error if the variable LANG is not defined. To avoid such error simply split the line like: if (${?LANG}) then set _save=$LANG endif In this way if LANG is not defined the next line is never executed and $LANG is not expanded. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1190142 http://bugzilla.opensuse.org/show_bug.cgi?id=1190142#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS --- Comment #1 from Dr. Werner Fink <werner@suse.com> --- Should be fixed with commit 48897c3 at https://github.com/openSUSE/aaa_base/commit/48897c357de1b74711d81a32459fa1f0... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1190142 http://bugzilla.opensuse.org/show_bug.cgi?id=1190142#c2 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #2 from Ludwig Nussel <lnussel@suse.com> --- closing, thanks! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1190142 http://bugzilla.opensuse.org/show_bug.cgi?id=1190142#c3 --- Comment #3 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1190142) was mentioned in https://build.opensuse.org/request/show/928785 Factory / aaa_base -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com