Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Assign to parameter in parameter -- opposite of ${(P)name}?



Benjamin R. Haskell wrote:
> It's the end of the week, and I'm tired, so I'm sure I'm completely 
> overlooking something obvious, but how do you *assign* to a parameter 
> whose name is in a parameter?
[...]
> Do I need to resort to 'eval'?

% typeset foobar=baz
% print ${foobar}
baz

Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925



Messages sorted by: Reverse Date, Date, Thread, Author