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

Jody Bruchon jody at jodybruchon.com
Wed May 13 18:06:50 UTC 2015


On 05/13/2015 1:00 PM, Michael Conrad wrote:
> while read $foo; do
>    echo $foo;
> done
>
> Does it start writing to an unintended variable on the second iteration?

My bash appears to resolve $foo to nothing and puts the response in 
$REPLY. What's strange is that it is now NOT letting me use 'read $foo' 
and works correctly. I don't know why it let me do it that way earlier. 
Very odd.

bash --version
GNU bash, version 4.3.25(1)-release (x86_64-unknown-linux-gnu)

-Jody


More information about the busybox mailing list