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

2023-02-21 Thread Koichi Murase
2023年2月22日(水) 4:25 Chet Ramey : > I think we could probably allow it during programmable completion, too. I > don't know if it will provide any user benefit, though. I see. Maybe it is more consistent, and the code would be simpler. I'm not sure either if there is really a use case for checkwinsi

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

2023-02-21 Thread Kerin Millar
On Tue, 21 Feb 2023 15:44:34 -0500 Chet Ramey wrote: > On 2/21/23 4:18 AM, Kerin Millar wrote: > > I am writing to report that the documented behaviour of the checkwinsize > > shopt can be impeded by the use of the subshell. > > It hasn't worked that way since at least bash-3.2, when I quit loo

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

2023-02-21 Thread Chet Ramey
On 2/21/23 4:18 AM, Kerin Millar wrote: I am writing to report that the documented behaviour of the checkwinsize shopt can be impeded by the use of the subshell. It hasn't worked that way since at least bash-3.2, when I quit looking, so at least 16+ years. I'll take it as a new feature request

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

2023-02-21 Thread Chet Ramey
On 2/21/23 8:21 AM, Koichi Murase wrote: 2023年2月21日(火) 20:28 Koichi Murase : 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 int

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

2023-02-21 Thread Koichi Murase
2023年2月21日(火) 20:28 Koichi Murase : > 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. https:/

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

2023-02-21 Thread Koichi Murase
2023年2月21日(火) 18:19 Kerin Millar : > In this case, the values of the variables were not updated from within the > subshell, only the initial shell. I consider this to be surprising because > the manual does not mention any such limitation. Consequently, the utility of > the checkwinsize feature

On the behaviour of the checkwinsize shopt from within a subshell

2023-02-21 Thread Kerin Millar
I am writing to report that the documented behaviour of the checkwinsize shopt can be impeded by the use of the subshell. Firstly, some preliminaries. $ declare -p BASH_VERSION declare -- BASH_VERSION="5.2.15(1)-release" $ shopt checkwinsize checkwinsizeon $ sz() { /bin/true; declare -p COLU