In ksh return code when using the pipe operator may sometime be incorrect.

Solution Verified - Updated -

Issue

  • In ksh return code when using the pipe operator may sometime be incorrect.
  • In ksh the return code from a pipe command may be incorrect, and can lead to infinite loop in a script depending on this return code.

Environment

  • Red Hat Enterprise Linux (RHEL) 6
    • ksh-20120801-10.el6_5.5
    • ksh-20120801-10.el6_5.6
    • ksh-20120801-10.el6_5.7
    • ksh-20120801-10.el6_5.8
    • ksh-20120801-10.el6_5.9

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.