Re: My script makes a defunct subshell and sticks on read

2018-01-31 Thread Chet Ramey
On 1/31/18 7:44 AM, Øyvind Hvidsten wrote: > Here. Now it's reading from stdin, and it locks up after a few seconds > every time. No fifo's, pipes, non-standard file descriptors or anything. > > bash -c 'for ((i=0; ; i++)); do (( i%100 )) || printf "%s\n" "$i"; read -t > 0.1; done' This is de

Documentation improvement: fix incorrect link

2018-01-31 Thread Jorge
The link "See , for a description of |shopt|." in the section 9.1 Bash History Facilities should point to bashref.html#The-Shopt-Builtin  instead of bashref.html#Bash-Builtins

Re: My script makes a defunct subshell and sticks on read

2018-01-31 Thread Chet Ramey
On 1/31/18 6:09 AM, Øyvind Hvidsten wrote: > > It will also lock up when run like this, without opening and closing the > file descriptor repeatedly. A missed signal, perhaps? > > exec {fd}<> <(:); for ((i=0; ; i++)); do ((i%100)) || echo $i; read -t > 0.001 -u $fd; done It might be a signal pr

Bash-4.4 Official Patch 18

2018-01-31 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.4 Patch-ID: bash44-018 Bug-Reported-by:Siteshwar Vashisht Bug-Reference-ID: <1341922391.30876471.1501250355579.javamail.zim...@redhat.com> Bug-Reference-URL:

Bash-4.4 Official Patch 17

2018-01-31 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.4 Patch-ID: bash44-017 Bug-Reported-by:ZhangXiao Bug-Reference-ID: <58ad3eac.4020...@windriver.com> Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-b

Bash-4.4 Official Patch 16

2018-01-31 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.4 Patch-ID: bash44-016 Bug-Reported-by:Luiz Angelo Daros de Luca Bug-Reference-ID: Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2016-09/msg

Bash-4.4 Official Patch 14

2018-01-31 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.4 Patch-ID: bash44-014 Bug-Reported-by:Oyvind Hvidsten Bug-Reference-ID: Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2017-12/msg00023.h

Bash-4.4 Official Patch 15

2018-01-31 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.4 Patch-ID: bash44-015 Bug-Reported-by:David Simmons Bug-Reference-ID: Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2017-02/msg00033.html B

Bash-4.4 Official Patch 13

2018-01-31 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 4.4 Patch-ID: bash44-013 Bug-Reported-by:Siteshwar Vashisht Bug-Reference-ID: <1508861265.9523642.1484659442561.javamail.zim...@redhat.com> Bug-Reference-URL:

Re: My script makes a defunct subshell and sticks on read

2018-01-31 Thread Øyvind Hvidsten
Here. Now it's reading from stdin, and it locks up after a few seconds every time. No fifo's, pipes, non-standard file descriptors or anything. bash -c 'for ((i=0; ; i++)); do (( i%100 )) || printf "%s\n" "$i"; read -t 0.1; done' I'll shut up now.

Re: My script makes a defunct subshell and sticks on read

2018-01-31 Thread Øyvind Hvidsten
On 30/01/18 22:51, Chet Ramey wrote: On 1/30/18 3:04 PM, Øyvind Hvidsten wrote: Bash Version: 4.4 Patch Level: 12 Release Status: release Description:     Running the included script, which does nothing useful but is cut down a lot to demonstrate the issue, my main computer (amd64 based) coun

Re: My script makes a defunct subshell and sticks on read

2018-01-31 Thread Øyvind Hvidsten
On 30/01/18 22:54, Øyvind Hvidsten wrote: > On 30/01/18 22:51, Chet Ramey wrote: >> On 1/30/18 3:04 PM, Øyvind Hvidsten wrote: >> >>> Bash Version: 4.4 >>> Patch Level: 12 >>> Release Status: release >>> >>> Description: >>> Running the included script, which does nothing useful but is >>> cu