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

Re: saved from prince of eval



On 11/08/2015 02:04 PM, Ray Andrews wrote:

Letting double quotes do some of the work:


    foo="\$${IN[list]}[${IN[topE]}, ${IN[bottomE]}]"
    IN[PAGE]="${(e)foo}"

... very near transparent and syntactically pleasing. Still, I can't get it on one line. It seems, so far, as if the double quotes around the first line are somehow conflicting with the '(e)' as if the (e) wants to do all the work if the contents of foo are merge in on one line. Not that the above is unsatisfactory, but I wonder if the intermediary 'foo' can be dispensed with.





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