Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bad expansion
- X-seq: zsh-workers 16476
- From: DervishD <raul@xxxxxxxxxxxx>
- To: raul@xxxxxxxxxxxx, schaefer@xxxxxxxxxxxxxxxx
- Subject: Re: Bad expansion
- Date: Mon, 21 Jan 2002 20:46:03 +0100
- Cc: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: DervishD <raul@xxxxxxxxxxxx>
- Sender: DervishD <raul@xxxxxxxxxxxx>
Hi Bart :))
>} > # Bad substitution
>} > echo ${${testing[1]}_VALUE}
>} echo ${(e):-\$${testing[1]}_VALUE}
>} The :-\ is a smiley that means "maybe there ought to be a neater way".
>There's also
> echo ${(P)${:-${testing[1]}_VALUE}}
>but I don't know whether that can be considered "neater."
Obviously, the Zefram's solution, which has a smiley XDDD
Seriously: why am I having the 'bad substitution' error? What am
I doing wrong?. This interest me more than the solution.
And thanks a lot for your solution too :))
Raúl
Messages sorted by:
Reverse Date,
Date,
Thread,
Author