Gentoo Archives: gentoo-user

From: Alan Mackenzie <acm@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Shell echo missing after ctrl+c
Date: Sun, 19 Mar 2017 11:38:38
Message-Id: 20170319113756.GB4150@acm
In Reply to: [gentoo-user] Shell echo missing after ctrl+c by Kai Krakow
1 Hello, Kai.
2
3 On Sun, Mar 19, 2017 at 09:49:50 +0100, Kai Krakow wrote:
4 > Hello!
5
6 > More and more of my Gentoo systems are exhibiting the following
7 > strange and unexpected behavior:
8
9 > After ctrl+c'ing out of programs like tailf, SSH password prompts, in
10 > the middle of a shell scripts, the shell echo is not restored - that
11 > is: If I type characters I no longer see the characters (but they are
12 > received and can be executed by "enter"). If experiencing this, I have
13 > to ctrl+c again to discard what I was typing, the blindly type "reset"
14 > to reset the terminal, then echo is enabled again.
15
16 > I'm not sure which update or configuration is causing this. It started
17 > out on our Gentoo servers some years ago (which I'm only SSH'ed into,
18 > no physical access), now since a few weeks, also my desktop machines are
19 > affected. I have no explanation for this.
20
21 > But maybe anyone?
22
23 > BTW: I know from the old times (some 15-20 years ago) that ctrl+c out
24 > of a program (i.e. rsync) that starts a subshell (i.e. ssh) that in
25 > turn shows a password prompt, will leave you with an echoless shell.
26 > But it shows up on almost any occasion now.
27
28 It's been happening to me increasingly often in the last few
29 months/years. I don't like it.
30
31 Here is a recipe for reproducing the phenomenon. A typical way of
32 invoking patch is by supplying the patch file to standard input:
33
34 $ patch --dry-run < some-patch-file.diff
35
36 . However if you accidentally omit the "<", like this:
37
38 $ patch --dry-run some-patch-file.diff
39
40 , the terminal will await you typing in the patch file. Instead, do a
41 ctrl-c. This leaves the terminal not echoing keystrokes.
42
43 By the way, thanks for educating me about the existence of the command
44 `reset'. :-)
45
46 > --
47 > Regards,
48 > Kai
49
50 > Replies to list-only preferred.
51
52 --
53 Alan Mackenzie (Nuremberg, Germany).

Replies

Subject Author
[gentoo-user] Re: Shell echo missing after ctrl+c Kai Krakow <hurikhan77@×××××.com>
Re: [gentoo-user] Shell echo missing after ctrl+c Daniel Frey <djqfrey@×××××.com>