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

Re: PATCH: $modules (was: Re: Seg fault with zmodload -u)



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