On 11/20/17 7:05 AM, Bruce Evans wrote:

>> At the point SIGWINCH will have been delivered to vim, but not to bash.
> 
> I saw this sort of problem on an old system (with bash-1.4.7) and wondered
> if anyone has fixed it.

The `checkwinsize' option came in bash-2.0 with the rest of the `shopt'
options. Current versions allow you to build bash with it enabled by
default.

> Job control seemed to be working perfectly to POSIX spec, but POSIX spec
> just doesn't work for SIGWINCH, and it is not clear how it can work even
> for SIGHUP.  IIRC, terminals are specified to only send SIGWINCH to the
> foreground process.  That is vim in this case.  Nothing relays the signal
> to the next foreground process (usually the shell).  

This is correct; that's why bash queries the window size when a process
stops or exits due to a signal.

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

Reply via email to