bash question

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Oct 5 19:46:38 UTC 2004


On Tue, 5 Oct 2004, William Park wrote:

> On Tue, Oct 05, 2004 at 10:28:59AM +0200, Peter L. Peres wrote:
>>
>> I have asked this before: how does one expand parameters in bash for
>> indirection ?
>>
>> Specifically:
>>
>> foo=123
>> bar=foo
>>
>> now, what do I do to get the contents of foo knowing bar. I.e.:
>>
>> baz=?!?(bar) such that baz=123
>>
>> (find the ?!? operator, without using the name foo explicitly). I tried
>> various ${:=} etc expansions with no luck.
>
> man bash
> /indirect

Eh ... that's about the only search key I did not try. Sigh. Thanks,

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list