I am trying to reference an environment variable from within an
environment variable.
HOME=/home/paul
x=HOME
echo $"$x"
gives me $HOME and not /home/paul
or
HOME=/home/paul
x=\$HOME
echo $x
gives me $HOME and not /home/paul
I could write a c program that would use getenv recursively, but it
would me more aesthetically pleasing to use a (simple ?) shell command.
Is there anything I'm missing, or am I attempting the impossible ?
I am using ksh on HP-UX 10.20
Please email any thoughts as well as posting them. Thanks
Paul Graves
EDS Electronic Commerce
Cheadle, Cheshire, UK