Bug 321381 - fancontrol shell script syntax error
Summary: fancontrol shell script syntax error
Alias: None
Product: Fedora
Classification: Fedora
Component: lm_sensors   
(Show other bugs)
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2007-10-06 15:36 UTC by Steve Grubb
Modified: 2015-03-05 01:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-10-08 13:28:30 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Steve Grubb 2007-10-06 15:36:01 UTC
Description of problem:
Bash detects a syntax error in the fancontrol script. This means it will
probably not run correctly.

sh -n /usr/sbin/fancontrol
/usr/sbin/fancontrol: line 334: syntax error near unexpected token `<'
/usr/sbin/fancontrol: line 334: `                       read < <(exec sleep 1)'

I think the read command needs a variable to receive the input being sent to it.
There is another one like this at line 372. I am rating this high severity since
a malfunctioning fan can cause the system to shutdown.

Version-Release number of selected component (if applicable):

Additional info:
F7 has the same problem.

Comment 1 Hans de Goede 2007-10-08 13:28:30 UTC
Well, then you shouldn't start it with sh but with bash:
[hans@localhost ~]$ cat /usr/sbin/fancontrol | head -n 1

Closing as works for me.

Note You need to log in before you can comment on or make changes to this bug.