Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: MBEGIN, MEND in #m when pattern has "|"



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