Typed characters no longer echoed on to a utf8 terminal after read is allowed to time out in a ksh script

Solution Unverified - Updated -

Issue

  • Within a 'ksh' shell script, if a read from the window is allowed to timeout (<Enter> key not pressed before the 'read' timeout period) the 'tty' 'echo' is off upon exit from the shell script.
  • Characters typed in by the user are no longer visible to the user until the 'echo' is turned back on.
  • This issue occurs only when the system locale is set to a UTF-8 based character encoding
  • The script below demonstrates the problem:

#!/bin/ksh
TMOUT=5
read

Environment

  • Red hat Enterprise Linux 5
  • ksh-20080202-14.el5_4.2
  • locale set as a language with UTF-8 encoding

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