Bug 155970 - ksh executes /etc/bash.bashrc three times on login
Summary: ksh executes /etc/bash.bashrc three times on login
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 6
Hardware: All SuSE Linux 10.1
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-07 23:44 UTC by Forgotten User eGHtJabySz
Modified: 2006-03-13 11:44 UTC (History)
0 users

See Also:
Found By: Beta-Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch for /etc/profile (991 bytes, patch)
2006-03-07 23:46 UTC, Forgotten User eGHtJabySz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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