From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: completion features
Date: Fri, 12 Mar 1999 09:55:20 +0100 (MET) [thread overview]
Message-ID: <199903120855.JAA02581@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Thu, 11 Mar 1999 18:02:19 +0100
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
next reply other threads:[~1999-03-12 8:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-12 8:55 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-03-15 9:59 Sven Wischnowsky
1999-03-12 13:10 Sven Wischnowsky
1999-03-12 16:19 ` Bart Schaefer
1999-03-13 17:59 ` Bart Schaefer
1999-03-12 9:36 Sven Wischnowsky
1999-03-12 9:38 ` Peter Stephenson
1999-03-11 17:02 Peter Stephenson
1999-03-11 22:06 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199903120855.JAA02581@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).