Strange echo behaviour
Cathey, Jim
jcathey at ciena.com
Wed Jan 26 16:54:14 UTC 2011
The error, such as it is, is in the implementation of the gpio/export
proc handler. The Unix file paradigm is that there is no difference
in function between writing bulk data as individual bytes or not,
except for performance and interleaving. For those rare cases where
the blocking matters, tools like dd exist.
Perhaps your command should properly be:
echo 56 | dd obs=3 >/sys/class/gpio/export
given that you're talking to an inflexible 'device'?
-- Jim
More information about the busybox
mailing list