Another thing that's inconsistent is how input is accepted. In a lot of
cases a new value can be set by simply doing 'echo 1 >file', but in other
cases you need to suppress the newline and do 'echo -n 1 >file'.
Posted Mar 18, 2010 4:01 UTC (Thu) by hmh (subscriber, #3838)
[Link]
That's considered a bug. You're supposed to eat all whitespace before AND after whatever you want to parse in a write to a sysfs attribute, and error out if there is any crap at the end.