Bug 510374
| Summary: | 'source' keyword invalid in pdksh | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Jeff Bastian <jbastian> |
| Component: | kdelibs | Assignee: | Than Ngo <than> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Desktop QE <desktop-qa-list> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 5.4 | CC: | llim, pknirsch, rlerch, tao, tpelka |
| Target Milestone: | rc | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
pdksh — a new package in Red Hat Enterprise Linux 5.4 — does not recognize the keyword source in scripts. However, the /etc/profile.d/kde.sh script uses the source keyword in the line source /etc/sysconfig/prelink. Consequently, if a user is using pdksh as their shell, and KDE is installed, the following error message will be returned in login shells:
ksh: /etc/profile.d/kde.sh[7]: source: not found
To work around this issue, change the
source /etc/sysconfig/prelink
line in the /etc/profile.d/kde.sh script to
. /etc/sysconfig/prelink
The keyword . is an alias for source in all Bourne compatible shells including bash, AT&T ksh, and pdksh.
This issue will be resolved in an upcoming update to Red Hat Enterprise Linux 5.4.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-23 11:25:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 469297, 499522, 513501, 523968 | ||
|
Description
Jeff Bastian
2009-07-08 20:27:30 UTC
Release note added. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: ======= pdksh (new to RHEL 5.4) does not recognize the keyword 'source' in scripts, but /etc/profile.d/kde.sh uses the keyword in the line source /etc/sysconfig/prelink Consequence: ============ If a user has their shell set to pdksh (newly added to RHEL 5.4) and KDE is installed, they will get an error in login shells: ksh: /etc/profile.d/kde.sh[7]: source: not found Fix: ==== This will be fixed in a future update to RHEL 5.4. In the meantime, if you're hitting this bug, you can edit the /etc/profile.d/kde.sh script and change the keyword 'source' to just '.'. That is, change source /etc/sysconfig/prelink to . /etc/sysconfig/prelink Result: ======= The keyword '.' is an alias for 'source', and all Bourne compatible shells including bash, AT&T ksh, and pdksh understand '.' Release note updated. If any revisions are required, please set the "requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1,22 +1,15 @@ -Cause: -======= -pdksh (new to RHEL 5.4) does not recognize the keyword 'source' in scripts, but /etc/profile.d/kde.sh uses the keyword in the line - source /etc/sysconfig/prelink +pdksh — a new package in Red Hat Enterprise Linux 5.4 — does not recognize the keyword source in scripts. However, the /etc/profile.d/kde.sh script uses the source keyword in the line source /etc/sysconfig/prelink. Consequently, if a user is using pdksh as their shell, and KDE is installed, the following error message will be returned in login shells: -Consequence: -============ -If a user has their shell set to pdksh (newly added to RHEL 5.4) and KDE is installed, they will get an error in login shells: - ksh: /etc/profile.d/kde.sh[7]: source: not found +ksh: /etc/profile.d/kde.sh[7]: source: not found -Fix: -==== -This will be fixed in a future update to RHEL 5.4. In the meantime, if you're hitting this bug, you can edit the /etc/profile.d/kde.sh script and change the keyword 'source' to just '.'. +To work around this issue, change the -That is, change - source /etc/sysconfig/prelink -to - . /etc/sysconfig/prelink +source /etc/sysconfig/prelink -Result: +line in the /etc/profile.d/kde.sh script to -======= + -The keyword '.' is an alias for 'source', and all Bourne compatible shells including bash, AT&T ksh, and pdksh understand '.'+. /etc/sysconfig/prelink + +The keyword . is an alias for source in all Bourne compatible shells including bash, AT&T ksh, and pdksh. + +This issue will be resolved in an upcoming update to Red Hat Enterprise Linux 5.4. |