Bug 155639

Summary: bash-specific syntax in /etc/ksh.kshrc
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/bash.bashrc

Description Forgotten User eGHtJabySz 2006-03-07 00:15:02 UTC
/etc/ksh.kshrc is a symlink to /etc/bash.bashrc; the same startup file is executed by both shells.  This startup file contains a bit of bash-specific syntax at line 212 that causes ksh to choke:

    function which () {

To make both bash and ksh happy, this line should read:

    which () {
Comment 1 Forgotten User eGHtJabySz 2006-03-07 00:16:46 UTC
Created attachment 71487 [details]
Patch for /etc/bash.bashrc
Comment 2 Dr. Werner Fink 2006-03-07 12:47:41 UTC
Already fixed but with

    function which { ...

to make new bash 3.1 _and_ ksh happy.