Bug 5504

Summary: Terminating ash 'read -s' makes input characters invisible
Product: Busybox Reporter: Explorer09
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: minor CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Explorer09 2012-09-04 15:06:47 UTC
To reproduce this bug:

1. Run busybox ash shell
2. Type 'read -s'
3. Press Ctrl+C to abort the reading.

Actual result:

From now, every character I type will be invisible. Even newlines are invisible too.

For example, when I type multiple enters and then 'ls' then enter, my shell screen looks something like this:
---------------------------------------------
/ $ / $ / $ / $ / $ / $ / $ / $ bin    dev   initrd.img  lost+found  opt   run	    srv  usr
boot   etc   lib	 media	     proc  sbin     sys  var
cdrom  home  lib64	 mnt	     root  selinux  tmp  vmlinuz
---------------------------------------------

Expected result:

The input characters I type should be visible like before. Like this:
---------------------------------------------
/ $ 
/ $ 
/ $ 
/ $ ls
bin    dev   initrd.img  lost+found  opt   run	    srv  usr
boot   etc   lib	 media	     proc  sbin     sys  var
cdrom  home  lib64	 mnt	     root  selinux  tmp  vmlinuz
---------------------------------------------
Comment 1 Explorer09 2012-09-04 15:08:28 UTC
Correction to reproducing steps

2. Type 'read -s' and then press enter
Comment 2 Denys Vlasenko 2012-09-06 11:29:03 UTC
Fixed in git:

commit 9e71e3cea59c06d40234d8f3363c3f05112e8d5a
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Thu Sep 6 13:28:10 2012 +0200

    ash: fix "read -s" + ^C