Re: [minor] for/select parsing inconsistency

2018-12-09 Thread Chet Ramey
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;

Re: write() not retried after EINTR in printf and echo

2018-12-09 Thread Pusillanimous Pussyfooter
> 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