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

Re: How to best match $( ... ) in a string



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