aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-01-12 13:31:24 +0000
committerRon Yorston <rmy@pobox.com>2024-01-12 13:31:24 +0000
commit72602d763cd164320a27f6db0fedb490cb9b457f (patch)
tree3d304fcedf0a310165f169386b5af3cff2efb418 /scripts/basic/docproc.c
parentcdee4a435a7d0d4abac29ea38f8bee9b53e9830e (diff)
downloadbusybox-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/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions