bash question

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Oct 5 08:28:59 UTC 2004


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.

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