Thanks a lot for the explanation. It would be great, if this were
somewhere in the documentation.

Or at least a reference to what `subst -nobackslashes -nocommands` does
and how to use it to build useful regexes. ;-)

On 2018-11-02 20:10, Joshua Root wrote:

> set reinplace_cmd [subst -nobackslashes -nocommands
> {s/AC_INIT\(\[tmux\], (next-[0-9]+\.[0-9]+)\)/AC_INIT([tmux], \1
> (${version}))/g}]
> reinplace -E $reinplace_cmd ${worksrcpath}/configure.ac

I ended up using this one, since it had the entire regex on one line.

Thanks again!

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to