[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
- Bash 5.2.0: Memory leak with $(<file),
pourko <=
Re: Bash 5.2.0: Memory leak with $(<file), Chet Ramey, 2024/01/08
Message not available