Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bad expansion
- X-seq: zsh-workers 16473
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: DervishD <raul@xxxxxxxxxxxx>
- Subject: Re: Bad expansion
- Date: Mon, 21 Jan 2002 17:12:53 +0000
- Cc: Zsh <zsh-workers@xxxxxxxxxx>
- In-reply-to: <20020121145154.GA21761@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E16SfsH-00017M-00@xxxxxxxxxxxxxxxxxxxxx> <20020121145154.GA21761@xxxxxxxx>
On Jan 21, 2:51pm, Zefram wrote:
} Subject: Re: Bad expansion
}
} DervishD wrote:
} > # 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."
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author