Bash 5 increase in RAM from loop with many interations that append to file

2020-10-26 Thread Scott Kostyshak
The following example uses more peak RAM on new bash versions than old versions: for i in {1..100}; do echo "${i}" >> example.txt done By measuring peak memory usage with time (/usr/bin/time -f "%E %P %M"), I get that newer versions of Bash use about 284M, where older versions use about

Behavior change

2020-10-26 Thread Gregory Heytings via Bug reports for the GNU Bourne Again SHell
Hi, I just installed Bash 5.1 rc1. I have IGNOREEOF set, and in 5.0 (and earlier version) when pressing C-d one sees: $ Use "logout" to leave the shell. With 5.1 rc1 there is a newline between the prompt and the message: $ Use "logout" to leave the shell. Is this change intentional?

Re: issue with vredir6.sub and AIX - bash (sub-shell) is crashing durig manual replication of test

2020-10-26 Thread Chet Ramey
On 10/24/20 1:17 PM, Michael Felt wrote: > OK. Thanks for the reply - and apologies for slow response. > > I was expecting a summary of the test results. I thought the other > projects you lead ended with test summaries. No, there have never been summaries. > If you care to help me find where

Re: Bash-5.1-rc1 available

2020-10-26 Thread Chet Ramey
On 10/20/20 4:44 PM, Bob Proulx wrote: > Chet Ramey wrote: >> This release fixes several outstanding bugs in bash-5.0 and introduces >> several new features. > > An unlisted change (I couldn't locate it in the changes) is that > 'reverse-search-history (C-r)' now highlights the search pattern.

Re: Command "read -N " doesn't respect UTF-8 encoding

2020-10-26 Thread Chet Ramey
On 10/24/20 3:51 PM, i...@kablex.ru wrote: > Bash Version: 4.3 > Patch Level: 30 > Release Status: release > > Description: > UTF-8 string piped to read command goes corrupt with -N option, e.g. > printf "привет"|(read -N 100500 var_text; printf "$var_text" ) > returns