Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compinit problems with Cygwin and Win2000
- X-seq: zsh-users 5073
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Vagn Johansen <v@xxxxxxxxxxxxxxxx>
- Subject: Re: compinit problems with Cygwin and Win2000
- Date: Fri, 21 Jun 2002 08:04:00 -0700 (PDT)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20020621113726.VHNO1315.fepE.post.tele.dk@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: schaefer@xxxxxxxxxxxxxxxx
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