Bug 155970

Summary: ksh executes /etc/bash.bashrc three times on login
Product: [openSUSE] SUSE Linux 10.1 Reporter: Forgotten User eGHtJabySz <forgotten_eGHtJabySz>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Beta 6   
Target Milestone: ---   
Hardware: All   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Patch for /etc/profile

Description Forgotten User eGHtJabySz 2006-03-07 23:44:32 UTC
Code in /etc/profile doesn't handle ksh startup files correctly.  /etc/bash.bashrc is executed three times by ksh login shells, and twice by other shells.  $HOME/.kshrc isn't executed at all.  ksh will apparently run /etc/ksh.kshrc and $HOME/.kshrc at startup for every shell, so it was redundant for /etc/profile to run these files explicitly.  I've attempted to fix this with the attached patch.
Comment 1 Forgotten User eGHtJabySz 2006-03-07 23:46:18 UTC
Created attachment 71675 [details]
Patch for /etc/profile
Comment 2 Ruediger Oertel 2006-03-13 00:46:54 UTC
Werner: probably your area ...
Comment 3 Dr. Werner Fink 2006-03-13 11:44:35 UTC
fixed