help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] indirection


From: Chet Ramey
Subject: Re: [Help-bash] indirection
Date: Wed, 14 Mar 2012 16:19:54 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 3/14/12 4:13 PM, Stephane Chazelas wrote:
> 2012-03-14 13:48:25 -0600, Bill Gradwohl:
>> If one level of indirection is ${!xxx}, how does one code 2 levels without
>> using an intermediate variable?
>>
>> Is it even possible?
>>
>> I've tried and get nothing but bad substitution messages.
>>
>> It's the syntax that's got me stumped.
> [...]
> 
> Contrary to zsh, bash (and ksh) doesn't have a consistent syntax
> for nesting expansion operators.
> 
> In zsh:

Which of course helps the questioner not at all.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]