Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Shell echo missing after ctrl+c
Date: Sun, 19 Mar 2017 11:57:34
Message-Id: 20170319125351.495c27b6@jupiter.sol.kaishome.de
In Reply to: Re: [gentoo-user] Shell echo missing after ctrl+c by Alan Mackenzie
1 Am Sun, 19 Mar 2017 11:37:56 +0000
2 schrieb Alan Mackenzie <acm@×××.de>:
3
4 > Hello, Kai.
5 >
6 > On Sun, Mar 19, 2017 at 09:49:50 +0100, Kai Krakow wrote:
7 > > Hello!
8 >
9 > > More and more of my Gentoo systems are exhibiting the following
10 > > strange and unexpected behavior:
11 >
12 > > After ctrl+c'ing out of programs like tailf, SSH password prompts,
13 > > in the middle of a shell scripts, the shell echo is not restored -
14 > > that is: If I type characters I no longer see the characters (but
15 > > they are received and can be executed by "enter"). If experiencing
16 > > this, I have to ctrl+c again to discard what I was typing, the
17 > > blindly type "reset" to reset the terminal, then echo is enabled
18 > > again.
19 >
20 > > I'm not sure which update or configuration is causing this. It
21 > > started out on our Gentoo servers some years ago (which I'm only
22 > > SSH'ed into, no physical access), now since a few weeks, also my
23 > > desktop machines are affected. I have no explanation for this.
24 >
25 > > But maybe anyone?
26 >
27 > > BTW: I know from the old times (some 15-20 years ago) that ctrl+c
28 > > out of a program (i.e. rsync) that starts a subshell (i.e. ssh)
29 > > that in turn shows a password prompt, will leave you with an
30 > > echoless shell. But it shows up on almost any occasion now.
31 >
32 > It's been happening to me increasingly often in the last few
33 > months/years. I don't like it.
34
35 Me neither, getting on my nerves.
36
37 > Here is a recipe for reproducing the phenomenon. A typical way of
38 > invoking patch is by supplying the patch file to standard input:
39 >
40 > $ patch --dry-run < some-patch-file.diff
41 >
42 > . However if you accidentally omit the "<", like this:
43 >
44 > $ patch --dry-run some-patch-file.diff
45 >
46 > , the terminal will await you typing in the patch file. Instead, do a
47 > ctrl-c. This leaves the terminal not echoing keystrokes.
48
49 The "funny" nature of this bug is its "reproducibility": On my system,
50 your test doesn't work for me: I currently always get echo back. Tho,
51 next reboot that may have changed.
52
53 > By the way, thanks for educating me about the existence of the command
54 > `reset'. :-)
55
56 Enjoy. :-)
57
58 There's a maybe related problem: On some system I see that tailf
59 doesn't detect new file data - sometimes never, sometimes it stop after
60 a while, and I checked: The file wasn't rotated or truncated. That also
61 affects apachetop which reliably never works on this system. Fun fact:
62 Only one user was affected by this, now also my own user is affected.
63
64 --
65 Regards,
66 Kai
67
68 Replies to list-only preferred.