Skip to navigation Skip to main content

Utilities

  • Subscriptions
  • Downloads
  • Red Hat Console
  • Get Support
Red Hat Customer Portal
  • Subscriptions
  • Downloads
  • Red Hat Console
  • Get Support
  • Products

    Top Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    All Products

    Downloads and Containers

    • Downloads
    • Packages
    • Containers

    Top Resources

    • Documentation
    • Product Life Cycles
    • Product Compliance
    • Errata
  • Knowledge

    Red Hat Knowledge Center

    • Knowledgebase Solutions
    • Knowledgebase Articles
    • Customer Portal Labs
    • Errata

    Top Product Docs

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    All Product Docs

    Training and Certification

    • About
    • Course Index
    • Certification Index
    • Skill Assessment
  • Security

    Red Hat Product Security Center

    • Security Updates
    • Security Advisories
    • Red Hat CVE Database
    • Errata

    References

    • Security Bulletins
    • Security Measurement
    • Severity Ratings
    • Security Data

    Top Resources

    • Security Labs
    • Backporting Policies
    • Security Blog
  • Support

    Red Hat Support

    • Support Cases
    • Troubleshoot
    • Get Support
    • Contact Red Hat Support

    Red Hat Community Support

    • Customer Portal Community
    • Community Discussions
    • Red Hat Accelerator Program

    Top Resources

    • Product Life Cycles
    • Customer Portal Labs
    • Red Hat JBoss Supported Configurations
    • Red Hat Insights
Or troubleshoot an issue.

Select Your Language

  • English
  • Français
  • 한국어
  • 日本語
  • 中文 (中国)

Infrastructure and Management

  • Red Hat Enterprise Linux
  • Red Hat Satellite
  • Red Hat Subscription Management
  • Red Hat Insights
  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift
  • Red Hat OpenStack Platform
  • Red Hat OpenShift
  • Red Hat OpenShift AI
  • Red Hat OpenShift Dedicated
  • Red Hat Advanced Cluster Security for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes
  • Red Hat Quay
  • Red Hat OpenShift Dev Spaces
  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage
  • Red Hat Hyperconverged Infrastructure
  • Red Hat Ceph Storage
  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes
  • Red Hat JBoss Enterprise Application Platform
  • Red Hat Data Grid
  • Red Hat JBoss Web Server
  • Red Hat build of Keycloak
  • Red Hat support for Spring Boot
  • Red Hat build of Node.js
  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Application Foundations
  • Red Hat Fuse
  • Red Hat AMQ
  • Red Hat 3scale API Management
All Products
Red Hat Product Errata RHBA-2011:1647 - Bug Fix Advisory
Issued:
2011-12-06
Updated:
2011-12-06

RHBA-2011:1647 - Bug Fix Advisory

  • Overview
  • Updated Packages

Synopsis

ksh bug fix update

Type/Severity

Bug Fix Advisory

Red Hat Insights patch analysis

Identify and remediate systems affected by this advisory.

View affected systems

Topic

An updated ksh package that fixes various bugs is now available for Red Hat
Enterprise Linux 6.

Description

KSH-93 is the most recent version of the KornShell by David Korn of AT&T Bell
Laboratories. KornShell is a shell programming language which is also compatible
with sh, the original Bourne Shell.

This updated ksh package includes fixes for the following bugs:

  • Previously, ksh did not always wait for a pipeline to complete when the

pipefail option was used. Consequently, a failed exit status was erroneously
reported even when the pipeline had not failed. With this update, the code has
been improved and the pipefail option now functions as expected. (BZ#702016)

  • File name completion used after an environment variable failed and ksh

reported a "bad substitution" error. With this update, an upstream patch has
been applied which fixes the problem. (BZ#702015).

  • When running a ksh script the exit code of a child process was not preserved.

Consequently, when a script asked for such an exit code, the wrong value was
reported. With this update, an upstream patch has been applied which fixes the
problem. (BZ#702013, BZ#728900)

  • In POSIX functions, a function defined without using the, "function", keyword,

the value of the variable "$0" was changed to the name of the function instead
of keeping the original value, the name of the caller function. With this update
an upstream patch has been applied to correct the code and ksh keeps the name of
the caller function in "$0" as expected. (BZ#702011)

  • Previously, when the ksh built-in "kill" command was called with a very large,

non-existent PID value, it was interpreted as " -1". The "-1" argument to the
kill command is for terminating all processes. Consequently, all processes owned
by the user were killed. With this update a patch has been applied and ksh now
checks for a valid process ID. (BZ#701890)

  • If the IFS variable was unset inside a function used in a script, the memory

being used was erroneously freed. Consequently, ksh would terminate
unexpectedly. With this update, an upstream patch has been applied which still
allows the IFS variable to be unset, but no longer frees the memory. Thus the
problem is fixed, and ksh no longer crashes in the scenario described.
(BZ##683734)

  • Previously, ksh treated an array declaration as a definition. Consequently,

the array contained one element after the declaration. This bug has been fixed,
and now an array is correctly reported as empty after a declaration. (BZ#702014)

  • Previously, when using ksh, ksh became unresponsive when pipes were used in a

"eval" argument. With this update an upstream patch has been applied and the ksh
no longer hangs in the scenario described. (BZ#742244)

  • ksh could return the exit code of the previous process to have used the same

PID number, when PID numbers were being reused after many hundreds of iterations
of a script. With this update the code has been fixed and the error no longer
occurs in the scenario described. (#743842)

All users of ksh are advised to upgrade to this updated package, which fixes
these bugs.

Solution

Before applying this update, make sure all previously-released errata
relevant to your system have been applied.

This update is available via the Red Hat Network. Details on how to
use the Red Hat Network to apply this update are available at
https://access.redhat.com/kb/docs/DOC-11259

Affected Products

  • Red Hat Enterprise Linux Server 6 x86_64
  • Red Hat Enterprise Linux Server 6 i386
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support 6 i386
  • Red Hat Enterprise Linux Workstation 6 x86_64
  • Red Hat Enterprise Linux Workstation 6 i386
  • Red Hat Enterprise Linux Desktop 6 x86_64
  • Red Hat Enterprise Linux Desktop 6 i386
  • Red Hat Enterprise Linux for IBM z Systems 6 s390x
  • Red Hat Enterprise Linux for Power, big endian 6 ppc64
  • Red Hat Enterprise Linux for Scientific Computing 6 x86_64
  • Red Hat Enterprise Linux Server from RHUI 6 x86_64
  • Red Hat Enterprise Linux Server from RHUI 6 i386
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support 6 x86_64
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems) 6 s390x
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension 6 x86_64
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension 6 i386
  • Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension (for IBM z Systems) 6 s390x

Fixes

  • BZ - 683734 - ksh crashes when IFS is unset inside a function
  • BZ - 701890 - misprocessing of invalid PID argument for ksh built-in kill
  • BZ - 702008 - KSH default path missing 'cwd' /bin:/usr/bin missing colon at the end
  • BZ - 702015 - completion after an environment variable results in a "bad substitution" error
  • BZ - 702016 - pipefail option causes intermittent failure of 'ls|! grep'
  • BZ - 728900 - wait fails on pid of co-process
  • BZ - 742244 - ksh script never comes back

CVEs

(none)

References

(none)

Note: More recent versions of these packages may be available. Click a package name for more details.

Red Hat Enterprise Linux Server 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
x86_64
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899
i386
ksh-20100621-12.el6.i686.rpm SHA-256: d9446c2bba6357c6a9b9f777aec55f7ce2679a7a027434ed510154a5e59a346e
ksh-debuginfo-20100621-12.el6.i686.rpm SHA-256: f114780245ef149e23c17322988fe6c8ec526e5863b8fd37133e695f61a9d0f2

Red Hat Enterprise Linux Server - Extended Life Cycle Support 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
x86_64
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899
i386
ksh-20100621-12.el6.i686.rpm SHA-256: d9446c2bba6357c6a9b9f777aec55f7ce2679a7a027434ed510154a5e59a346e
ksh-debuginfo-20100621-12.el6.i686.rpm SHA-256: f114780245ef149e23c17322988fe6c8ec526e5863b8fd37133e695f61a9d0f2

Red Hat Enterprise Linux Workstation 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
x86_64
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899
i386
ksh-20100621-12.el6.i686.rpm SHA-256: d9446c2bba6357c6a9b9f777aec55f7ce2679a7a027434ed510154a5e59a346e
ksh-debuginfo-20100621-12.el6.i686.rpm SHA-256: f114780245ef149e23c17322988fe6c8ec526e5863b8fd37133e695f61a9d0f2

Red Hat Enterprise Linux Desktop 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
x86_64
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899
i386
ksh-20100621-12.el6.i686.rpm SHA-256: d9446c2bba6357c6a9b9f777aec55f7ce2679a7a027434ed510154a5e59a346e
ksh-debuginfo-20100621-12.el6.i686.rpm SHA-256: f114780245ef149e23c17322988fe6c8ec526e5863b8fd37133e695f61a9d0f2

Red Hat Enterprise Linux for IBM z Systems 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
s390x
ksh-20100621-12.el6.s390x.rpm SHA-256: 972e83aac01688875b31bc356d1cb6ee1819dda2a7a187a81cf6144218ba926b
ksh-debuginfo-20100621-12.el6.s390x.rpm SHA-256: ffda4b3e8e2b50b24f2d2a77a81763adfef1a53b5a38ab03fa30a5bae16d403c

Red Hat Enterprise Linux for Power, big endian 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
ppc64
ksh-20100621-12.el6.ppc64.rpm SHA-256: 42928fef903588b909d0c50162ef454521194e6f0bc8f8ebe13cd52bc45234e7
ksh-debuginfo-20100621-12.el6.ppc64.rpm SHA-256: 9668d29930e614856122fa8378bfafbbd42db1d62da41e42a096ba38325fdb57

Red Hat Enterprise Linux for Scientific Computing 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
x86_64
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899

Red Hat Enterprise Linux Server from RHUI 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
x86_64
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899
i386
ksh-20100621-12.el6.i686.rpm SHA-256: d9446c2bba6357c6a9b9f777aec55f7ce2679a7a027434ed510154a5e59a346e
ksh-debuginfo-20100621-12.el6.i686.rpm SHA-256: f114780245ef149e23c17322988fe6c8ec526e5863b8fd37133e695f61a9d0f2

Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems) 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
s390x
ksh-20100621-12.el6.s390x.rpm SHA-256: 972e83aac01688875b31bc356d1cb6ee1819dda2a7a187a81cf6144218ba926b
ksh-debuginfo-20100621-12.el6.s390x.rpm SHA-256: ffda4b3e8e2b50b24f2d2a77a81763adfef1a53b5a38ab03fa30a5bae16d403c

Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
x86_64
ksh-20100621-12.el6.x86_64.rpm SHA-256: 2a47dc3e2a8aa79fcc76d474038788678ea26411bbb6923d78c4f50626e45945
ksh-debuginfo-20100621-12.el6.x86_64.rpm SHA-256: 7c2fa1c38386be3cf44638ae3620ed425038d27f0865e0932adced920e3be899
i386
ksh-20100621-12.el6.i686.rpm SHA-256: d9446c2bba6357c6a9b9f777aec55f7ce2679a7a027434ed510154a5e59a346e
ksh-debuginfo-20100621-12.el6.i686.rpm SHA-256: f114780245ef149e23c17322988fe6c8ec526e5863b8fd37133e695f61a9d0f2

Red Hat Enterprise Linux Server - Extended Life Cycle Support Extension (for IBM z Systems) 6

SRPM
ksh-20100621-12.el6.src.rpm SHA-256: 460973d5d68a45dabc18960d6a0e5988707db409c69d1ceebd2826bd6f173e30
s390x
ksh-20100621-12.el6.s390x.rpm SHA-256: 972e83aac01688875b31bc356d1cb6ee1819dda2a7a187a81cf6144218ba926b
ksh-debuginfo-20100621-12.el6.s390x.rpm SHA-256: ffda4b3e8e2b50b24f2d2a77a81763adfef1a53b5a38ab03fa30a5bae16d403c

The Red Hat security contact is secalert@redhat.com. More contact details at https://access.redhat.com/security/team/contact/.

Red Hat LinkedIn YouTube Facebook X, formerly Twitter

Quick Links

  • Downloads
  • Subscriptions
  • Support Cases
  • Customer Service
  • Product Documentation

Help

  • Contact Us
  • Customer Portal FAQ
  • Log-in Assistance

Site Info

  • Trust Red Hat
  • Browser Support Policy
  • Accessibility
  • Awards and Recognition
  • Colophon

Related Sites

  • redhat.com
  • developers.redhat.com
  • connect.redhat.com
  • cloud.redhat.com

Red Hat legal and privacy links

  • About Red Hat
  • Jobs
  • Events
  • Locations
  • Contact Red Hat
  • Red Hat Blog
  • Inclusion at Red Hat
  • Cool Stuff Store
  • Red Hat Summit
© 2025 Red Hat

Red Hat legal and privacy links

  • Privacy statement
  • Terms of use
  • All policies and guidelines
  • Digital accessibility