For demonstration, put a $(<file) construct inside a loop, and the leak becomes 
very noticeable:
###################
echo 1 >/tmp/file
while :;do
  var=$(</tmp/file)
done
###################
The bug is not present in bashes before 5.2.0.

-- 
Pourko

  • Bash 5.2.0: Memo... pourko--- via Bug reports for the GNU Bourne Again SHell
    • Re: Bash 5.2... Grisha Levit
      • Re: Bash... pourko--- via Bug reports for the GNU Bourne Again SHell
        • Re: ... Chet Ramey
        • Re: ... pourko--- via Bug reports for the GNU Bourne Again SHell
          • ... Grisha Levit
            • ... pourko--- via Bug reports for the GNU Bourne Again SHell
          • ... pourko--- via Bug reports for the GNU Bourne Again SHell
            • ... Chet Ramey
      • Re: Bash... Chet Ramey
    • Re: Bash 5.2... pourko--- via Bug reports for the GNU Bourne Again SHell

Reply via email to