Things that work in bash-5.0 but not work in bash-5.1-rc1

2020-10-07 Thread Hyunho Cho
< bash-5.0 > $ read rows cols < <(stty size) $ echo $rows $cols 19 95 < bash-5.1-rc1 > $ read rows cols < <(stty size) stty: 'standard input': Inappropriate ioctl for device $ echo $rows $cols < empty -

Broken $! behavior

2020-10-07 Thread Paul Fox
It seems like consecutive $! are mis-processed. This has always worked - since csh days and bash 1.x. But sometime after 4.1 or 4.2, it got broken. Heres my system info and version data /home/fox/src/proc@allie: cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic D

background process in command substitution

2020-10-07 Thread Hyunho Cho
There are cases that need not wait until background process finish -- In this case, zsh and bash wait 3 seconds to finish the assignment operation. because sleep command's STDOUT is the pipe of command substitution. < zsh > $ A

Re: Things that work in bash-5.0 but not work in bash-5.1-rc1

2020-10-07 Thread Chet Ramey
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 std

Re: background process in command substitution

2020-10-07 Thread Chet Ramey
On 10/7/20 10:39 AM, Hyunho Cho wrote: > There are cases that need not wait until background process finish Thanks. I'll look at this for a future version. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech,

Re: Broken $! behavior

2020-10-07 Thread Chet Ramey
On 10/7/20 7:56 AM, Paul Fox wrote: > It seems like consecutive $! are mis-processed. This has always worked - > since csh days and bash 1.x. But sometime after 4.1 or 4.2, it got broken. > Heres my system info and version data Thanks for the report. The shell rejects the second history expansion

Re: Broken $! behavior

2020-10-07 Thread Paul Fox
Thank you Chet - much appreciated. On Wed, 7 Oct 2020 at 16:41, Chet Ramey wrote: > On 10/7/20 7:56 AM, Paul Fox wrote: > > It seems like consecutive $! are mis-processed. This has always worked - > > since csh days and bash 1.x. But sometime after 4.1 or 4.2, it got > broken. > > Heres my syst

Re: Bash-5.1-beta available

2020-10-07 Thread Andreas Schwab
On Sep 10 2020, Chet Ramey wrote: > h. Bracketed paste mode is enabled by default (for now). Shouldn't that be disabled on a dumb terminal? This wrecks havoc on the gdb testsuite. It sets TERM=dumb to tell readline not to do any fancy output, but this no longer works. Andreas. -- Andreas Sch

Re: Bash-5.1-beta available

2020-10-07 Thread Chet Ramey
On 10/7/20 12:42 PM, Andreas Schwab wrote: > On Sep 10 2020, Chet Ramey wrote: > >> h. Bracketed paste mode is enabled by default (for now). > > Shouldn't that be disabled on a dumb terminal? This wrecks havoc on the > gdb testsuite. It sets TERM=dumb to tell readline not to do any fancy > outp

Re: Bash-5.1-beta available

2020-10-07 Thread Chet Ramey
On 10/7/20 12:42 PM, Andreas Schwab wrote: > On Sep 10 2020, Chet Ramey wrote: > >> h. Bracketed paste mode is enabled by default (for now). > > Shouldn't that be disabled on a dumb terminal? This wrecks havoc on the > gdb testsuite. It sets TERM=dumb to tell readline not to do any fancy > outp

Re: Bash-5.1-beta available

2020-10-07 Thread Andreas Schwab
On Okt 07 2020, Chet Ramey wrote: > On 10/7/20 12:42 PM, Andreas Schwab wrote: >> On Sep 10 2020, Chet Ramey wrote: >> >>> h. Bracketed paste mode is enabled by default (for now). >> >> Shouldn't that be disabled on a dumb terminal? This wrecks havoc on the >> gdb testsuite. It sets TERM=dumb