read() builtin doesn't read integer value /proc files (but bash's does)
Cristian Ionescu-Idbohrn
cristian.ionescu-idbohrn at axis.com
Wed Dec 15 10:41:21 UTC 2010
This problem is a dash-bug which was originally reported to:
http://bugs.debian.org/595063
and subsequently to dash at vger.kernel.org. The whole thread here:
http://thread.gmane.org/gmane.comp.shells.dash/362
BusyBox v1.19.0.git (2010-12-12 17:35:28 CET) ash is affected by exactly
the same thing:
$ ./busybox ash -c 'read MAX </proc/sys/kernel/pid_max; echo $MAX'
3
but not bash:
$ bash -c 'read MAX </proc/sys/kernel/pid_max; echo $MAX'
32768
Thoughts?
Cheers,
--
Cristian
More information about the busybox
mailing list