Bug 155639 - bash-specific syntax in /etc/ksh.kshrc
Summary: bash-specific syntax in /etc/ksh.kshrc
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 00:15 UTC by Forgotten User eGHtJabySz
Modified: 2006-03-07 12:47 UTC (History)
0 users

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


Attachments
Patch for /etc/bash.bashrc (342 bytes, patch)
2006-03-07 00:16 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 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.