zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: _expand doesn't do brace expansion?
Date: Thu, 15 Jun 2000 12:45:22 +0200 (MET DST)	[thread overview]
Message-ID: <200006151045.MAA06788@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Thu, 15 Jun 2000 10:22:22 +0000


Bart Schaefer wrote:

> On Jun 15, 11:20am, Sven Wischnowsky wrote:
> } Subject: Re: _expand doesn't do brace expansion?
> }
> } Oh, didn't everyone know that?
> 
> _complete manages to complete inside braces; why does the code that
> understands braces stop taking them apart when there's a closed pair?
> AFAICT, no completion works at all once any close brace is in place,
> even if that's within an outer set of braces, e.g.

It simply gives up.

With `a{b,c}<TAB>' the completion code would have to generate the
matches for `ab' and `ac', then built the intersection to get the
suffixes (and prefixes if there's a suffix, i.e. the middle-strings)
which are in both sets (in all n sets, actually). And that mey be
combined with arbitrarily complicated match specs. Frightening.

Or have I missed something?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~2000-06-15 10:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-15 10:45 Sven Wischnowsky [this message]
2000-06-15 10:58 ` Sven Wischnowsky
2000-06-15 15:08   ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
2000-06-15  9:20 Sven Wischnowsky
2000-06-15 10:22 ` Bart Schaefer
2000-06-15  9:09 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=200006151045.MAA06788@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).