From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3113 invoked from network); 16 Aug 2000 10:34:44 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 16 Aug 2000 10:34:44 -0000 Received: (qmail 24603 invoked by alias); 16 Aug 2000 10:34:34 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12659 Received: (qmail 24596 invoked from network); 16 Aug 2000 10:34:33 -0000 Date: Wed, 16 Aug 2000 12:34:22 +0200 (MET DST) Message-Id: <200008161034.MAA11486@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Peter Stephenson's message of Wed, 16 Aug 2000 11:12:20 +0100 Subject: 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@informatik.hu-berlin.de