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

Re: coloring substitution seems to eat next line.



Roman:

            cc=( ${(M)cc:#*$~zsh_case${filter}*} )

I've been applying that in some other functions but I need a variation that will erase non-matching lines but leave them as blanks so that array indexes do not change.  Reason being that a subsequent merge with another array will happen and indexes must mesh.  I'm doing it right now by using a dummy string as replacement for a non-match and then combining the arrays and then deleting the dummies but that's obviously clumsy.







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