Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11862 > unrolled thread

Re: Bug in bash 4.4-beta: suspending and restarting "man" program

Started byChet Ramey <chet.ramey@case.edu>
First post2015-11-10 14:35 -0500
Last post2015-11-10 14:35 -0500
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Bug in bash 4.4-beta: suspending and restarting "man" program Chet Ramey <chet.ramey@case.edu> - 2015-11-10 14:35 -0500

#11862 — Re: Bug in bash 4.4-beta: suspending and restarting "man" program

FromChet Ramey <chet.ramey@case.edu>
Date2015-11-10 14:35 -0500
SubjectRe: Bug in bash 4.4-beta: suspending and restarting "man" program
Message-ID<mailman.2078.1447184149.7904.bug-bash@gnu.org>
On 11/10/15 2:15 PM, Keith Thompson wrote:
> But there's still a mystery here. Why does it behave differently under rxvt
> vs. xterm,
> and why does that difference show up in bash 4.4-beta but not in 4.3.30?
> (Both versions of bash are built from source on the same system.)
> 
> Running bash 4.3.30 under either xterm 261 or rxvt v2.6.4, I get:
> 
> bash-4.3$ trap
> trap -- '' SIGTSTP
> trap -- '' SIGTTIN
> trap -- '' SIGTTOU
> 
> and Ctrl-Z works correctly.
> 
> Running bash-4.4-beta under xterm, I get
> 
> bash-4.4$ trap
> trap -- '' SIGTTOU
> 
> and Ctrl-Z works correctly.  Running bash-4.4-beta under rxvt, I get:
> 
> bash-4.4$ trap
> trap -- '' SIGTSTP
> trap -- '' SIGTTIN
> trap -- '' SIGTTOU
> 
> and Ctrl-Z *doesn't* work.

It seems like you need to figure out why rxvt starts the shell with
SIGTSTP ignored.  It doesn't seem like anything that the system /bin/sh
or the bash version you're running does, since xterm doesn't exhibit
this behavior.

The difference between bash-4.3 and bash-4.4 is a bug fix: if the shell
is started with SIGTSTP ignored (any signal, really), it's supposed to
pass that setting on to the children it invokes.  bash-4.3 didn't do that
in this case, and bash-4.4 does.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web