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? -- Cheers, Joey Pabalinas