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

Understanding why...


I'm new to the list and to ZSH, long time bash user though.

I was writing a function which would convert the LS_COLORS entry to an associative array.

I have solved the issue but I'd like to understand why it was necessary. I'll take an answer from someone here, but what I'd really like to find out is if there is *some sort of 'set -x' functionality that would give me verbose information *about what is going on.

So, given:


This gave me the results I wanted:

typeset-A LSC=(${(@s/=/)${(@s/:/)${LS_COLORS%:}}})

What it needed was the two @ flags. I'd like to understand just what is going on in each step of the expansion that required those two flags.

Thanks for any help!




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