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