SIGSEGV on "local -a GROUPS=(...)" in function

2013-02-14 Thread Richard Tollerton
This is probably not a good thing to be doing in the first place (I ran into this before realizing that GROUPS was a special variable): #!/bin/bash crashy () { local -a GROUPS=(a b); } crashy But it probably shouldn't be doing this (tested in bash 4.2.42 on archlinux x86_64, and bash 4.2.10 on ar

Re: SIGTERM ignored before exec race

2013-02-14 Thread Chet Ramey
On 2/9/13 12:02 AM, Pádraig Brady wrote: > $ rpm -q kernel glibc bash > kernel-2.6.40.4-5.fc15.x86_64 > glibc-2.14.1-6.x86_64 > bash-4.2.10-4.fc15.x86_64 > > I notice the following will wait for 5 seconds for > the timeout process to end with SIGALRM, rather than > immediately due to kill sending