bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On the behaviour of the checkwinsize shopt from within a subshell


From: Chet Ramey
Subject: Re: On the behaviour of the checkwinsize shopt from within a subshell
Date: Tue, 21 Feb 2023 14:25:54 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 2/21/23 8:21 AM, Koichi Murase wrote:
2023年2月21日(火) 20:28 Koichi Murase <myoga.murase@gmail.com>:
I recently noticed that `checkwinsize' stopped working in the trap
string and the `bind -x' context from Bash 5.2, which broke my script.

The behavioral change in the trap handlers and `bind -x' seems to have
been introduced in the following commit.

So the question reduces to whether checkwinsize should be processed while
readline has the terminal, period. I agree it should if job control is
enabled, since the process that has the terminal pgrp will get the
SIGWINCH (otherwise everyone gets it and can react accordingly). Trap
actions and `bind -x' commands are probably safe; users expect those to
have side effects.

I think we could probably allow it during programmable completion, too. I
don't know if it will provide any user benefit, though.

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]