Hello Thorsten,
i'm in the process of re-exploring Linux, because of CRUX Linux
(which use my S-nail as mailx(1) [which is optional]).
Thus i had to dig into GNU again, to be able to login via
rlogind(8) (they don't install the server and clients, but use
SSH); to make an hour-long story short, it turns out the GNU
rlogind(8) sets ISTRIP! Total crap!! I'm not sure about the
`forread' condition below, setting it in the `else' released me.
Ciao,
--steffen
diff --git a/main.c b/main.c
index d49474e..a81a017 100644
--- a/main.c
+++ b/main.c
@@ -1920,9 +1920,10 @@ x_mkraw(int fd, mksh_ttyst *ocb, bool forread)
cb = *ocb;
if (forread) {
+ cb.c_iflag &= ~(ISTRIP);
cb.c_lflag &= ~(ICANON) | ECHO;
} else {
- cb.c_iflag &= ~(INLCR | ICRNL);
+ cb.c_iflag &= ~(INLCR | ICRNL | ISTRIP);
cb.c_lflag &= ~(ISIG | ICANON | ECHO);
}
#if defined(VLNEXT) && defined(_POSIX_VDISABLE)