From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1262 invoked from network); 12 Mar 1999 08:55:42 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Mar 1999 08:55:42 -0000 Received: (qmail 6923 invoked by alias); 12 Mar 1999 08:55:23 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5767 Received: (qmail 6915 invoked from network); 12 Mar 1999 08:55:21 -0000 Date: Fri, 12 Mar 1999 09:55:20 +0100 (MET) Message-Id: <199903120855.JAA02581@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-workers@sunsite.auc.dk In-reply-to: Peter Stephenson's message of Thu, 11 Mar 1999 18:02:19 +0100 Subject: Re: completion features Peter Stephenson wrote: > (By the way, is > ${#:-$PREFIX$SUFFIX} supposed to work, because it doesn't, although > "${#${:-$PREFIX$SUFFIX}}" does.) The code explicitly tests: } else if ((*s == '#' || *s == Pound) && (iident(s[1]) || s[1] == '*' || s[1] == Star || s[1] == '@' || (isstring(s[1]) && (s[2] == Inbrace || s[2] == Inpar)))) Also, I find the difference between ${#${:-...}} and "${#${:-...}}" slightly irritating (again) -- the first one always yields `1' because the inner ${...} is taken as an array with one element. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de