On Jul 02 2025, Stefan Schulze Frielinghaus wrote:

> I'm pretty new to tcl and didn't do extensive testing but for my few
> experiments it worked so far.  I guess `string match` uses globbing so
> something like "* -f(no-)?stack-protector* *" doesn't work which is why
> I used two matches.

You can also use lsearch -regexp.

-- 
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to