On 12/7/18 8:02 AM, Martijn Dekker wrote:
> There is a minor inconsistency in grammatical parsing between 'for' and
> 'select' loops. Since 'select' is basically a glorified 'for', it seems to
> me that they should parse the same way.
>
> $ bash -c 'for x in; do :; done'
> $ bash -c 'select x in;
> There are a couple of signals for which this is the appropriate behavior.
> The right fix is to install handlers with the SA_RESTART flag set. The
> next version of bash will install its SIGWINCH handler with SA_RESTART.
Here is a trivial patch doing just that, though IMHO it would be much bette