Re: checkwinsize only works in interactive shells

2013-01-11 Thread Chet Ramey
On 1/11/13 4:58 PM, DJ Mills wrote: > As of right now, WINCH will not update COLUMNS or LINES in a > non-interactive shell. > > I've had to use: > trap 'COLUMNS=$(tput cols); LINES=$(tput lines)' WINCH > to get that behavior. And that hasn't changed. Maybe I should look at changing it. Chet

Re: checkwinsize only works in interactive shells

2013-01-11 Thread DJ Mills
On Fri, Jan 11, 2013 at 4:51 PM, Chet Ramey wrote: > On 1/11/13 4:46 PM, DJ Mills wrote: > > > Will they still be updated on WINCH without checkwinsize, as well? And > will > > they be set by default, or continue to be unset in scripts unless set > manually? > > The only thing that's changed is t

Re: checkwinsize only works in interactive shells

2013-01-11 Thread Chet Ramey
On 1/11/13 4:46 PM, DJ Mills wrote: > Will they still be updated on WINCH without checkwinsize, as well? And will > they be set by default, or continue to be unset in scripts unless set > manually? The only thing that's changed is that checkwinsize works in non-interactive shells. SIGWINCH stil

Re: checkwinsize only works in interactive shells

2013-01-11 Thread DJ Mills
On Fri, Jan 11, 2013 at 4:43 PM, Chet Ramey wrote: > On 1/11/13 4:13 PM, Greg Wooledge wrote: > > shopt -s checkwinsize only works in interactive shells. However, this > > is not mentioned in the manual. > > Yes, that's true. This was reported in June, and the development versions > since then

Re: checkwinsize only works in interactive shells

2013-01-11 Thread Chet Ramey
On 1/11/13 4:13 PM, Greg Wooledge wrote: > shopt -s checkwinsize only works in interactive shells. However, this > is not mentioned in the manual. Yes, that's true. This was reported in June, and the development versions since then have been changed to make it work in non-interactive shells as w