aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-07-12 11:52:06 +0100
committerRon Yorston <rmy@pobox.com>2023-07-12 11:52:06 +0100
commit2a4b086d4848616306f97f6378e0f10a48d41929 (patch)
tree361555080da82c8aa1b35aed25e645354c282f1a /shell/ash.c
parent63f2f555277c8a4b2b992367aa26d497931deaeb (diff)
downloadbusybox-w32-2a4b086d4848616306f97f6378e0f10a48d41929.tar.gz
busybox-w32-2a4b086d4848616306f97f6378e0f10a48d41929.tar.bz2
busybox-w32-2a4b086d4848616306f97f6378e0f10a48d41929.zip
ash: properly echo console input to 'read' built-in
The 'read' shell built-in echoed console input to stdout. Echo directly to the console instead. Costs 124-136 bytes.
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 17af816d4..f3eb98d85 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -15775,8 +15775,8 @@ exitshell(void)
15775 out: 15775 out:
15776#if ENABLE_SUW32 15776#if ENABLE_SUW32
15777 if (delayexit) { 15777 if (delayexit) {
15778 freopen("CONOUT$", "w", stdout); 15778#define EXIT_MSG "Press any key to exit..."
15779 fputs_stdout("Press any key to exit..."); 15779 console_write(EXIT_MSG, sizeof(EXIT_MSG) - 1);
15780 _getch(); 15780 _getch();
15781 } 15781 }
15782#endif 15782#endif