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

Jody Bruchon jody at jodybruchon.com
Wed May 13 15:30:32 UTC 2015


On 05/13/2015 11:27 AM, Michael Conrad wrote:
> My bash behaves like busybox. As far as I know it has never been
> possible to "read $foo" and get the value placed into $foo (unless
> $foo=foo)
I confirmed that bash on one of my servers does allow use of 'read $foo' 
instead of 'read foo'. It seems like a bad idea though; if a POSIX 
sh-compatible script sets foo=bar and goes 'read $foo' to effectively 
perform a 'read bar' then bash will break it.

-Jody


More information about the busybox mailing list