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.