News for hackers. Stuff that matters.
Re:The minimum viable fan control script by mortenlarsen on Tuesday September 27, 2022 @09:01AM (#32994724)
There is no need to call cat to read from a file.

> temp=$(cat /sys/class/thermal/thermal_zone1/temp)

temp=$(</sys/class/thermal/thermal_zone1/temp)

Re:The minimum viable fan control script by 0xCAP on Tuesday September 27, 2022 @09:13AM (#32994817)
A classic example of cat abuse in my book.
Re:The minimum viable fan control script by elsyx on Tuesday September 27, 2022 @06:07PM (#33001748)
Definitely an unwarranted cat call.
Re:The minimum viable fan control script by deeblering4 on Tuesday September 27, 2022 @01:57PM (#32998793)
meow
Re:The minimum viable fan control script by piperswe on Tuesday September 27, 2022 @02:37PM (#32999272)
IMO the cat version is more readable, and any performance difference should be negligible