bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash 5.2.0: Memory leak with $(<file)


From: pourko
Subject: Bash 5.2.0: Memory leak with $(<file)
Date: Sun, 7 Jan 2024 06:26:02 +0100 (CET)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]