Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: beginner needs help
- X-seq: zsh-workers 1200
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: vsv@xxxxxxx (Stefanita Valeriu Vilcu)
- Subject: Re: beginner needs help
- Date: Tue, 28 May 1996 00:14:46 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <Pine.LNX.3.91.960528005042.25460A-100000@burebista> from Stefanita Valeriu Vilcu at "May 28, 96 01:00:14 am"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
> Hi!
>
> How can I expand a variable which is in another variable?
> Let me explain:
>
> zsh$ TITI=somestuff
> zsh$ GIGI=TITI # NOT $TITI
>
> What command I must enter in order to obtain "somestuff" and in this
> command must not appear TITI.
You can try something like
eval echo '$'$GIGI
Or, after
GIGI='$TITI'
you can use ${(e)GIGI} with zsh-2.6-beta17 or later (see man zshexpn).
> In fact I'm trying to use arrays with multiple dimensions (if this is
> possible).
No, only one dimensional arrays are supported.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author