From: Jeenu on
Hi,

I have a file (myfile) containing the following lines:

a = 1
b = 2
c = 3

now if I do:

cat myfile | while read LINE; do
let "$LINE"
done

AFAIK, I should get the environment variables a, b and c set to the
values, but these variables don't get assigned at all. Could somebody
please tell me why this is happening? Or isn't this the right way to
use the 'let' built-in?

Thanks
Jeenu
 | 
Pages: 1
Prev: let built-in doesn't work as expected
Next: Wget