zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: 3.1.6-pws-4: backreferences
Date: Wed, 15 Sep 1999 16:16:18 +0200 (MET DST)	[thread overview]
Message-ID: <199909151416.QAA32682@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Peter Stephenson's message of Wed, 15 Sep 1999 15:05:32 +0200


Peter Stephenson wrote:

> Tanaka Akira wrote:
> > Z(2):akr@is27e1u11% Src/zsh -f
> > is27e1u11% setopt extendedglob
> > is27e1u11% a=abcdef
> > is27e1u11% echo ${a/(#b)a(?)c/$match[1]}        
> > def
> > 
> > It should be `bdef'. Since second time, it works well.
> 
> I've tried this on three different systems, with all the latest patches,
> and I don't get this, so I'm stuck at the moment.

I've run out of sync, then, because I get it too. And no wonder, in
subst.c:1291 replstr is still unconditionally singsub()ed (and indeed
if I execute different expansions, I always get the previous $match[1] 
inserted). And even if I quote the $match[1], it will not be
singsub()ed again (or not correctly? there is no tokenize() before the 
singusb() at glob.c:1850).

Hm, so how is this supposed to work: with or without quoting the beast?

Bye
 Sven


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


             reply	other threads:[~1999-09-15 14:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-15 14:16 Sven Wischnowsky [this message]
1999-09-15 13:51 ` Peter Stephenson
  -- strict thread matches above, loose matches on Subject: below --
1999-09-14 13:45 Peter Stephenson
1999-09-15  7:48 ` Peter Stephenson
1999-09-15 12:38 ` Tanaka Akira
1999-09-15 13:05   ` 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=199909151416.QAA32682@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).