Bug 12266 - typing gets invisible when PS1 is special
Summary: typing gets invisible when PS1 is special
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.31.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-20 06:05 UTC by Bastian Bittorf
Modified: 2019-10-21 16:48 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
reproduce the error by sourcing this file (680 bytes, application/x-shellscript)
2019-10-20 06:05 UTC, Bastian Bittorf
Details

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