Subject: Re: MBEGIN, MEND in #m when pattern has "|"
From: Sebastian Gniazdowski <[email-masked]>
To: Bart Schaefer <[email-masked]>
Cc: Zsh hackers list <[email-masked]>
Date: Fri, 3 Jun 2016 06:47:13 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On 3 June 2016 at 00:11, Bart Schaefer <[email-masked]> 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