[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Things that work in bash-5.0 but not work in bash-5.1-rc1
From: |
Chet Ramey |
Subject: |
Re: Things that work in bash-5.0 but not work in bash-5.1-rc1 |
Date: |
Wed, 7 Oct 2020 10:52:24 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 10/7/20 3:50 AM, Hyunho Cho wrote:
> < bash-5.0 >
>
> $ read rows cols < <(stty size)
These are all the same issue. It's the same thing described in
https://lists.gnu.org/archive/html/bug-bash/2020-09/msg00024.html
I'll see if there is a partial solution to the issue that doesn't require
stdin to be set to /dev/null. You end up with this weird hybrid: an
asynchronous non-job-control process still connected to the terminal.
> < bash-5.0 >
>
> $ ( trap 'uname' CHLD; date )
> Wed Oct 7 16:39:55 KST 2020
> Linux
>
> < bash-5.1-rc1 >
>
> $ ( trap 'uname' CHLD; date ) # some strange warning messages appear
> Wed Oct 7 16:40:05 KST 2020
> Linux
> bash: warning: run_pending_traps: recursive invocation while running
> trap for signal 17
You're comparing a debug message from a non-release version with a release
version.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/