zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re:  Incomplete/misleading description of GLOB_SUBST and $~ paramter expansion flag
Date: Tue, 2 Feb 1999 11:45:58 +0100 (MET)	[thread overview]
Message-ID: <199902021045.LAA08685@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Tue, 2 Feb 1999 13:36:46 +0300


Andrej Borsenkow wrote:

> This resulted from this line of Sven's:
> 
> if [[ "$cmd1" == $~pat || "$cmd2" == $~pat ]] then
> 
> (again something, I didn't know before and that is hard to infer from
> manuals :-(
> 
> The current description of above items imply, that they affect only file
> name expansion (globbing). The reality is, they prevent globbing
> metacharacters from being quoted in _any_ context where glob pattern is
> used. This includes, but is not limited to, filename expansion.

Agreed, we should document this.

> BTW is -M flag to completion affected by GLOB_SUBST?

No. Completion uses it's own matching code. Once I was dreaming of
using the existing globbing code, but since completion needs a lot of
information that is hard to get out of the globbing code (or
impossible without a lot of hacking), I had to write specialised
functions.

Bye
 Sven


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


             reply	other threads:[~1999-02-02 10:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-02 10:45 Sven Wischnowsky [this message]
1999-02-02 10:59 ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
1999-02-02 14:19 Sven Wischnowsky
1999-02-02 11:05 Sven Wischnowsky
1999-02-02 10:36 Andrej Borsenkow

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=199902021045.LAA08685@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).