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
pourko--- via Bug reports for the GNU Bourne Again SHell Sat, 06 Jan 2024 21:26:24 -0800
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