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

Re: compinit problems with Cygwin and Win2000



On Fri, 21 Jun 2002, Vagn Johansen wrote:

> It was caused by the comparison in:
>
> _d_als=($(whence -wm '_*' | sort |
> while read -rA _d_line; do
>   [[ ${_d_line[2]} = function ]] && print -r - ${_d_line[1]%:}
> done))
>
> ${_d_line[2]} contains "function^M" and not "function"
> as expected.

Try removing the '| sort' from that expression and see if the line endings
are still funny.

Although I'm interested in the result you get, I'd also suggest that you
replace that entire expression with

_d_als=($(typeset +fm _\*))

which ought to be a whole lot faster anyway.



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