Re: Evaluating a variable within a variable
Paul Jarc wrote: TimtheEagle <[EMAIL PROTECTED]> wrote: main_auth=7 f=main t=auth ile=$f"_"$t echo $ile Either: echo "${!ile}" Not portable. Or: eval "echo \"\$$ile\"" Portable (even to Solaris /bin/sh which is not POSIX). Not saying which you should use, just something to be awa
Re: Evaluating a variable within a variable
TimtheEagle <[EMAIL PROTECTED]> wrote: > main_auth=7 > > f=main > t=auth > > ile=$f"_"$t > > echo $ile Either: echo "${!ile}" Or: eval "echo \"\$$ile\"" paul