The behavior of ksh has changed when POSIX mode is enabled.

Solution Verified - Updated -

Issue

  • After updating ksh, it appears that the behavior of the echo built-in has changed when posix mode (environment variable POSIXLY_CORRECT is defined) is enabled.
  • Previously, the behavior was that when user printed a string that included the "-e" option to allow the escaping of characters, it did not print the "-e".
  • After ksh was updated, we are seeing the "-e", in addition to the string printed to the screen.
  • Is this the correct and expected behavior, or is this a bug?

Environment

  • Red Hat Enterprise Linux 6
  • ksh-20120801*

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content