Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: $modules (was: Re: Seg fault with zmodload -u)
- X-seq: zsh-workers 12659
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: $modules (was: Re: Seg fault with zmodload -u)
- Date: Wed, 16 Aug 2000 12:34:22 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Wed, 16 Aug 2000 11:12:20 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> > No. It's that without aliases, `zmodload -A' prints a newline. I.e.,
> > one line. So `${${(f)"$(zmodload -A)"}%% *}' produces one string (an
> > empty one). This could have been fixes by using:
> > `${${${(f)"$(zmodload -A)"}%% *}:#}'.
>
> % zmodload -A | od -t x2
> 0000000
But:
% f() { echo $# }
% f ${${(f)"$(zmodload -A)"}%% *}
1
% f ${${${(f)"$(zmodload -A)"}%% *}:#}
0
It's in the "".
Bye
Sven
P.S.: And of course, that meant that it was dependent on whether
completion was tried with an empty or non-empty prefix.
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author