Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion features
- X-seq: zsh-workers 5767
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: completion features
- Date: Fri, 12 Mar 1999 09:55:20 +0100 (MET)
- In-reply-to: Peter Stephenson's message of Thu, 11 Mar 1999 18:02:19 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author