korn shell ignores control character

  • 3283000
  • 11-Jan-2008
  • 30-Apr-2012

Environment

Novell SUSE Linux Enterprise Server 10
Novell SUSE Linux Enterprise Desktop 10
Novell Open Enterprise Server 2 (OES2)

Situation

You are using the following code in a korn shell script
Example :

echo "Your Choice ? \c"
read CHOICE

And you would expect that the cursor will stay after "?" and wait for input but the script ignores "\c" and jumps to the next line. Also the whole string "Your Choice ? \c" will be displayed.

Resolution

The problem will be resolved with the korn shell version
ksh-93s
in SLES10 SP2

Status

Reported to Engineering