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

Re: variable expansion inside string



On Tue, 2019-07-30 at 15:15 +0100, Peter Stephenson wrote:
> The nearest I can think of is:
> 
> print -r -- "${(e):-$a}"

Or, actually, a straight

print -r -- "${(e)a}"

since you don't need to add any text to the variable substitution.

pws




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