Bug 321381 - fancontrol shell script syntax error
Summary: fancontrol shell script syntax error
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: lm_sensors
Version: rawhide
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
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:
Clone Of:
Environment:
Last Closed: 2007-10-08 13:28:30 UTC
Type: ---
Embargoed:


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):
lm_sensors-2.10.4-2.fc8

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
#!/bin/bash

Closing as works for me.



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