zsh-workers
 help / color / mirror / code / Atom feed
From: "Nikolai Weibull" <now@bitwi.se>
To: "Bart Schaefer" <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: Prepend/append to the members of a list
Date: Tue, 31 Oct 2006 17:40:05 +0100	[thread overview]
Message-ID: <dbfc82860610310840i471fb6f4t750c7e1bcdbc6a79@mail.gmail.com> (raw)
In-Reply-To: <061031083123.ZM10976@torch.brasslantern.com>

On 10/31/06, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Oct 31,  2:52pm, Peter Stephenson wrote:
> }
> } +When tt(HIST_SUBST_PATTERN) is set, var(l) may start with a tt(#)
> } +to indicate that the pattern must match at the start of the string
> } +to be substituted, and a tt(%) may appear at the start or after an tt(#)
> } +to indicate that the pattern must match at the end of the string
> } +to be substituted.
>
> The doc in parameter expansion says
>
>      The PATTERN may begin with a `#', in which case the PATTERN must
>      match at the start of the string, or `%', in which case it must
>      match at the end of the string.
>
> Should that doc also say that #% is a legal pattern meaning "anchor
> the match at both ends of the string"?

So that it matches an empty string you mean?

  nikolai


  reply	other threads:[~2006-10-31 16:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-30 17:09 Jörg Sommer
2006-10-30 18:23 ` Nikolai Weibull
2006-10-31  2:54 ` Bart Schaefer
2006-10-31 14:52 ` Peter Stephenson
2006-10-31 16:31   ` Bart Schaefer
2006-10-31 16:40     ` Nikolai Weibull [this message]
2006-10-31 18:01       ` Nikolai Weibull
2006-10-31 17:08     ` Peter Stephenson
2006-11-01 12:24       ` Peter Stephenson

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=dbfc82860610310840i471fb6f4t750c7e1bcdbc6a79@mail.gmail.com \
    --to=now@bitwi.se \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@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).