ksh 'typeset -xu' and 'typeset -xl' failing to change word case

Solution Verified - Updated -

Issue

In Red Hat Enterprise Linux (RHEL) 6 starting with ksh-20120801-10.el6 using typeset -xl to lower case a variable or typeset -xu to uppercase a variable fails

# typeset -xu upper=blah
# echo $upper
blah

# typeset -xl lower=BLAH
# echo $lower
BLAH

Environment

  • Red Hat Enterprise Linux (RHEL) 6
    • ksh-20120801-10.el6 through ksh-20120801-10.el6 (inclusive)
  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.