Bug 12266

Summary: typing gets invisible when PS1 is special
Product: Busybox Reporter: Bastian Bittorf <bb>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.31.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: reproduce the error by sourcing this file

Description Bastian Bittorf 2019-10-20 06:05:28 UTC
Created attachment 8266 [details]
reproduce the error by sourcing this file

With busybox v1.31.0 on OpenWrt (musl) my login "hangs" during the prompt.

Attached is a script, which is sourced during profile.d
You can reproduce the issue by sourcing this script on a system, e.g.

user@box # . /tmp/prompt.sh

After that, i cannot see what i type anymore.

What works is e.g. uptime | logger -s
Also reseting the terminal with 'reset' does not help.

With older busybox-versions, e.g.
v1.27.2 and
v1.28.4
it runs without problems.
Sorry that i cannot help more at the moment (e.g. git bisect).

I can see the problem at least with "musl" and these architectures:

mipsel and
ath79
x86_64

I also checked with this binary and it happens there too:
https://busybox.net/downloads/binaries/1.31.0-i686-uclibc/busybox

It does NOT happen with:
https://busybox.net/downloads/binaries/1.30.0-i686/busybox

thanks for your work - bye, Bastian Bittorf
Comment 1 Bastian Bittorf 2019-10-21 16:48:27 UTC
applied to 1.31.1 stable, see:
http://lists.busybox.net/pipermail/busybox/2019-October/087541.html