diff options
| author | Ron Yorston <rmy@pobox.com> | 2024-01-12 13:31:24 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2024-01-12 13:31:24 +0000 |
| commit | 72602d763cd164320a27f6db0fedb490cb9b457f (patch) | |
| tree | 3d304fcedf0a310165f169386b5af3cff2efb418 /scripts | |
| parent | cdee4a435a7d0d4abac29ea38f8bee9b53e9830e (diff) | |
| download | busybox-w32-72602d763cd164320a27f6db0fedb490cb9b457f.tar.gz busybox-w32-72602d763cd164320a27f6db0fedb490cb9b457f.tar.bz2 busybox-w32-72602d763cd164320a27f6db0fedb490cb9b457f.zip | |
lineedit: remove CRs from input
Commit 8ade494aeb (win32: add support for virtual terminal input)
made some changes to how input is handled in the line editing code.
In some circumstances (e.g. 'cat | sh -i') this results in input
being read using fgets(3) rather than from the keyboard. Remove
CRs from input in this case.
Also, use fgets(3) if stdin is not a tty, but not stdout.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
