Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: MBEGIN, MEND in #m when pattern has "|"
- X-seq: zsh-workers 38585
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: MBEGIN, MEND in #m when pattern has "|"
- Date: Fri, 3 Jun 2016 06:47:13 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hA2/U9tHfKBnIJYSOvZyqlzDpft3QJ0ljSJZAWPeZo4=; b=PgZO6rKwWb22AeYcbGVMwuwdZIN05p3Fzs6LAHo4lr/ugQuxbDr5V0ubW1+P6jmIOf ijTmMEYAVl/9n5cH766TDhtW/0F+yALeplIa+GbbYuzb6bRn7gg4z8cptTKbA0YbS/Sy PB7hXJUl1wdiJIIVXXxH6tASShMkZyoilpgFsxltAdoQMNEYDaTu40ITailxRgMysX4d 3qUSvedjp8+ptR1eUzFV1itMGr7fqSCY9pK7BVvjmK/vsUcGsTc3pf/4VYs+Hbs4HZkj fd2pO3zkz5T8iLkTJGsLM0GDv5V8uIbRqiUoXCriPHCbjshjWssjzEjOKcjTgeNcM+rC f9xA==
- In-reply-to: <160602151123.ZM21157@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDXOUzJfhQMtCuW8mknM+OzyXQzafj9BKWPHDzkxAwXLA@mail.gmail.com> <160602151123.ZM21157@torch.brasslantern.com>
On 3 June 2016 at 00:11, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> MATCH MBEGIN and MEND are set only if there is a single possible match
> (more precisely, when the string can be matched with only a combination
> of strcmp() and simple wildcards). In //pat/repl/, there are multiple
> possible match positions; which begin and end do you want?
The ones that are substituted, i.e. if #m knows that it will replace
"vim", it should give indexes for that substring, and if it knows it
will replace "s", then should give indexes for it, etc.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author