How to use "read" in Busybox v1.1.1 ?

Bastian Bittorf bittorf at bluebottle.com
Mon May 11 19:01:31 UTC 2015


* Mike Yates <xobb at fonehelp.co.uk> [11.05.2015 18:05]:
> The command "read" in Busybox v1.23 functions just like in GNU bash but in the
> v1.1.1 in my old NAS it keeps complaining of not enough arguments.

what is your exact commandline?

> The "help" for "sh" doesn't work either, even for v1.23 and "read" is
> not listed in the commands help.
> Where is the documentation for it?

read is a so called 'shell builtin' like 'cd' or 'true'.

it is definded in 'shell/ash.c' at line 12868:
http://git.busybox.net/busybox/tree/shell/ash.c#n12868

you can use git for looking at v1.1.1 /
7328c8fdc17a73c1e2ad3d5934d4652bd2b2ac12 from 2006mar22:

http://git.busybox.net/busybox/tree/shell/ash.c?id=cebea726e81bfaaf5718af0691733df7c6a5428e#n12562

bye, bastian 


More information about the busybox mailing list