[Nottingham] A quick bourne shell scripting question

Michael Erskine nottingham at mailman.lug.org.uk
Fri Nov 8 10:55:00 2002


Hi,

Here's a query for any shell scripting folks...

I have a list of variables I'd like to echo to STDOUT so I have a loop
thus...

for var in VAR1 VAR2 VAR3 VAR4
do
    echo "${var}=3D${${var}}"
done

...but it doesn't work -- how can I get the desired result?

BTW: the shell in use is ash as provided by BusyBox 0.60.5.

Regards,

Michael.


Michael Erskine
Senior Software Engineer
Jasmin Simtec Limited
(T) 0115 9 165 165