Why ksh builtin command `wait` returns 127 on my RHEL6 system ?

Solution Unverified - Updated -

Issue

  • When trying to get return codes of wait , ksh randomly returns 127 even though the process exit successfully. What the cause of this behaviour ?

Environment

  • Red Hat Enterprise Linux 6.1
  • ksh-20100621-6.el6.x86_64

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.