[Bug 560152] New: ksh startup: $HOME/.kshrc is read twice by login shells
http://bugzilla.novell.com/show_bug.cgi?id=560152 http://bugzilla.novell.com/show_bug.cgi?id=560152#c0 Summary: ksh startup: $HOME/.kshrc is read twice by login shells Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: All OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wjones@fluke.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-6.1 Firefox/3.5.4 $HOME/.kshrc is read first by /etc/profile, and then a second time by the shell itself. The logic in /etc/profile is broken. The default value of $ENV apparently changed somewhere between ksh-93s-114.1 (openSUSE 11.0) and ksh-93t-165.2.i586 (openSUSE 11.2). old default: $HOME/.kshrc ($HOME is not expanded) new default: $HOME/.kshrc ($HOME **is** expanded) At /etc/profile line 357, there's a check to see if $ENV matches the default value. If not, $HOME/.kshrc is read (if the file exists). However, the default value checked is no longer correct, and as a result the file is read twice. Reproducible: Always Steps to Reproduce: 1.Add an echo command to $HOME/.kshrc (e.g. "echo This is ~/.kshrc") 2.Start ksh as a login shell: perl -e "exec {'ksh'} '-ksh'" Actual Results: $HOME/.kshrc is read twice: This is ~/.kshrc This is ~/.kshrc Expected Results: $HOME/.kshrc should only be read once. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=560152 http://bugzilla.novell.com/show_bug.cgi?id=560152#c1 --- Comment #1 from Warren Jones <wjones@fluke.com> 2009-12-02 22:13:35 UTC --- Created an attachment (id=330623) --> (http://bugzilla.novell.com/attachment.cgi?id=330623) Fix for bug. This may not be the best solution, but it pinpoints the problem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=560152 http://bugzilla.novell.com/show_bug.cgi?id=560152#c shuang qiu <sqiu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sqiu@novell.com AssignedTo|bnc-team-screening@forge.pr |ro@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=560152 http://bugzilla.novell.com/show_bug.cgi?id=560152#c Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ro@novell.com |werner@novell.com -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=560152 http://bugzilla.novell.com/show_bug.cgi?id=560152#c Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Severity|Normal |Minor -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=560152 http://bugzilla.novell.com/show_bug.cgi?id=560152#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2009-12-16 13:15:26 UTC --- Fixed for factory, thansk for the report. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=560152 https://bugzilla.novell.com/show_bug.cgi?id=560152#c3 Warren Jones <wjones@fluke.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |wjones@fluke.com Resolution|FIXED | --- Comment #3 from Warren Jones <wjones@fluke.com> 2011-02-03 23:34:18 UTC --- The bug is still present in openSUSE 11.4 milestone 6. The code for reading .kshrc in /etc/profile is unchanged. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=560152 https://bugzilla.novell.com/show_bug.cgi?id=560152#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2011-02-04 08:43:53 UTC --- readded the fix -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=560152 http://bugzilla.novell.com/show_bug.cgi?id=560152#c5 --- Comment #5 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (560152) was mentioned in https://build.opensuse.org/request/show/60088 Factory / aaa_base -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com