Bug 5504 - Terminating ash 'read -s' makes input characters invisible
Summary: Terminating ash 'read -s' makes input characters invisible
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 15:06 UTC by Explorer09
Modified: 2012-09-06 11:29 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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