zsh-users
 help / color / mirror / code / Atom feed
From: Zefram <zefram@fysh.org>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@sunsite.dk
Subject: Re: compctl -g not working
Date: Fri, 5 Oct 2001 17:23:43 +0100	[thread overview]
Message-ID: <20011005172343.A2872@fysh.org> (raw)
In-Reply-To: <1011005161336.ZM32521@candle.brasslantern.com>

Bart Schaefer wrote:
>Should we make BARE_GLOB_QUAL a bit smarter so that it knows about
>KSH_GLOB and looks back one more character to see if what precedes the
>open-paren token is one of the ksh-glob-chars?

Is "*(.)" a pattern "*" followed by glob qualifiers, or a ksh-style
pattern?  With the current system it's easy to predict when part
of a pattern will be interpreted as glob qualifiers, so you know to
disambiguate it if you didn't intend it to be taken as qualifiers.
With your proposed change, you'd have to think about the opposite
ambiguity too -- a set of glob qualifiers might be interpreted as part of
a pattern, and you'd sometimes need extra effort to force interpretation
as glob qualifiers.  I recommend sticking with the current, simpler, rule.

This is why we made the BARE_GLOB_QUAL option -- we wanted an unambiguous
syntax for glob qualifiers, that wouldn't get in the way of globbing
syntax at all.  Unfortunately no one's yet come up with a really good
suggestion.

-zefram


      reply	other threads:[~2001-10-05 16:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-03  2:53 Sweth Chandramouli
2001-10-03  3:16 ` Philippe Troin
2001-10-03  3:18   ` Sweth Chandramouli
2001-10-03  4:04     ` Bart Schaefer
2001-10-03  4:12       ` Sweth Chandramouli
2001-10-03  6:04         ` Bart Schaefer
2001-10-03  6:15           ` Sweth Chandramouli
2001-10-03 16:24             ` Bart Schaefer
2001-10-03 18:23               ` Sweth Chandramouli
2001-10-04  4:23                 ` Bart Schaefer
2001-10-04  4:43                   ` Sweth Chandramouli
2001-10-05 16:13                     ` Bart Schaefer
2001-10-05 16:23                       ` Zefram [this message]

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=20011005172343.A2872@fysh.org \
    --to=zefram@fysh.org \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.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).