From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11859 invoked by alias); 3 Jun 2016 04:47:36 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38585 Received: (qmail 22772 invoked from network); 3 Jun 2016 04:47:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hA2/U9tHfKBnIJYSOvZyqlzDpft3QJ0ljSJZAWPeZo4=; b=B5vICP2rXmS2MunP3wX0mI1NUA5aF9lVdJnEjxIqOj7sVVR8o9YaVMNZ2NaJAWXKN8 stCRMB5GywxBA8H76ajc1iBCRYO6zlPGU7OTcEjFRzT6Wm6ejzpLKG/BhY8IdiH5YsuZ Mz9wdw3v3j6l9iBa4XMBrcBTusZdJYZsqCXvBwYw/ibrXS0zVrg5IGi1RF2pI0IE/jOk YB+3uEgSUzE8KTlt3lIOiBVv8K0SvzQSV2gsGYGYAjlZD1wA6mL9TRXMVpnfIOZTu12/ NrMZB8YyIKjvrp6WFLpLYZ9oJ9OMlexcoRJ27n1jvb7kptAmcDCRuzPFyWTaYtzKeQ4i UZFQ== X-Gm-Message-State: ALyK8tJS0CCiITaIOTHgh7bViU+Ez3x36YliEYwXjVi4ATYC0CvBo4RPF12jLBQVSE9x144eWqZwiAYqfBIGrQ== X-Received: by 10.140.254.213 with SMTP id z204mr1556351qhc.56.1464929252851; Thu, 02 Jun 2016 21:47:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <160602151123.ZM21157@torch.brasslantern.com> References: <160602151123.ZM21157@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Fri, 3 Jun 2016 06:47:13 +0200 Message-ID: Subject: Re: MBEGIN, MEND in #m when pattern has "|" To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On 3 June 2016 at 00:11, Bart Schaefer 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