Bug 529493 - Bash specific feature in /etc/profile.d/modules.sh causes KSH errors.
Summary: Bash specific feature in /etc/profile.d/modules.sh causes KSH errors.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: environment-modules
Version: 11
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-17 16:19 UTC by Michael Andrews
Modified: 2009-11-10 17:49 UTC (History)
2 users (show)

Fixed In Version: 3.2.7b-5.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-07 00:17:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael Andrews 2009-10-17 16:19:22 UTC
Description of problem:
/etc/profile.d/modules.sh executes 'export -f'.  This is a bash specific feature.  I causes error in ksh when opening new ksh login shell, which runs /etc/profile which, in tern, runs all the /etc/profile.d/*.sh scripts.  

Version-Release number of selected component (if applicable): 
3.2.7b-2.fc11


How reproducible:


Steps to Reproduce:
1. Change shell to ksh
2. Open new login terminal
3. 
  
Actual results:
-ksh: export: -f: unknown option
Usage: export [-p] [name[=value]...]

Expected results:
<silence>

Additional info:

Comment 1 Fedora Update System 2009-10-19 17:00:09 UTC
environment-modules-3.2.7b-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/environment-modules-3.2.7b-3.fc12

Comment 2 Fedora Update System 2009-10-19 17:00:14 UTC
environment-modules-3.2.7b-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/environment-modules-3.2.7b-3.fc11

Comment 3 Fedora Update System 2009-10-21 00:41:36 UTC
environment-modules-3.2.7b-3.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update environment-modules'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10598

Comment 4 Fedora Update System 2009-10-27 06:29:02 UTC
environment-modules-3.2.7b-5.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update environment-modules'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10725

Comment 5 Fedora Update System 2009-11-07 00:17:54 UTC
environment-modules-3.2.7b-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Sjoerd Mullender 2009-11-07 23:21:35 UTC
Unfortunately, the fix makes that only a fixed set of shells is supported.  If you use another sh-like shell, you get an error when you login since the shell will complain if the . (source) command can't find the file you're sourcing.
It would be better if the file /etc/profile.d/modules.sh were to check whether the file it wants to source does in fact exist.

Comment 7 Fedora Update System 2009-11-10 17:49:33 UTC
environment-modules-3.2.7b-5.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.