Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to best match $( ... ) in a string
- X-seq: zsh-users 23416
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
- Subject: Re: How to best match $( ... ) in a string
- Date: Fri, 1 Jun 2018 11:01:45 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yE87kB1AyaZsYKYC0VvuqTnbVx5/r+H5jk9/VvmV7YA=; b=EFluKSWy9pNOlXxSJWi/om+yc5J+K+sBcgzaRqoNJcU74WIyLXxYxsPHNutg6jPTuD wggXqbmxjQim1NC+eNOv5Zn+ouyiy8l0s1taeXTl1EEzYvGyCYl4sXof6nW4hR8wUpki mhwsqQJaBONaA2cybsEKapo/8AvYdPgVR+8O816S7lybWaRFH8YNG9EYxpMxDJGumcFt 36+WszDLrt14O+jp8SEw2R5Y5tt7Tp4/I36l6GNdgbHtHfDxMnO/EoqHbwUMPyEn1hJm ziXU72a9uWCWIZp/ZmSmI2J0HFoGkDVnAFbFC0vlFP/vSSEVYZ0xW8ODBOS0HRyE/aHr gmKw==
- In-reply-to: <20180601084914.mwmhix5iph32y4wl@gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVANEoKJ0-R0i_zr6PoZYgzP8hYAtrTeyEKM-o4HoBr1rQ@mail.gmail.com> <20180601084914.mwmhix5iph32y4wl@gmail.com>
On 1 June 2018 at 10:49, Joey Pabalinas <joeypabalinas@xxxxxxxxx> wrote:
> On Fri, Jun 01, 2018 at 10:44:58AM +0200, Sebastian Gniazdowski wrote:
>> Hello,
>> the problem is possible quoting, e.g. $( echo \) ). Has anyone a
>> pattern that would handle some sort of quoting?
>
> You mean like a regex/glob to match the entire "$(...)" construct with those
> possible weird \) and such inside?
Yes, to not stop matching on \), etc.
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author