zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: Incomplete/misleading description of GLOB_SUBST and $~ paramter expansion flag
Date: Tue, 2 Feb 1999 13:36:46 +0300	[thread overview]
Message-ID: <001f01be4e97$eecf8c00$21c9ca95@mowp.siemens.ru> (raw)

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.

The suggested wording (for both) is something like

"by default metacharacters, used in globbing, are quoted in result of
parameter expansion. This option (flag) prevent this quoting, enabling the
result of parameter expansion to be interpreted as pattern in subsequent
filename expansion or pattern matching in builtin condition, case etc."
Probably, some examples (like the above) would also be nice.

BTW is -M flag to completion affected by GLOB_SUBST?

/andrej



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

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

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='001f01be4e97$eecf8c00$21c9ca95@mowp.siemens.ru' \
    --to=borsenkow.msk@sni.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).