Strange echo behaviour

Peter Korsgaard jacmet at sunsite.dk
Wed Jan 26 18:32:14 UTC 2011


>>>>> "Baruch" == Baruch Siach <baruch at tkos.co.il> writes:

Hi,

 >> Perhaps your command should properly be:
 >> 
 >> echo 56 | dd obs=3 >/sys/class/gpio/export
 >> 
 >> given that you're talking to an inflexible 'device'?

 Baruch> This makes the script much less readable. Isn't it reasonable
 Baruch> to expect echo not to retry a failed IO operation?

Yes, I would certainly say so. The advantage of sysfs over ioctl's and
similar interfaces that you can access it using echo and cat shouldn't
be that hard to handle.

-- 
Bye, Peter Korsgaard


More information about the busybox mailing list