[PATCH v2] testsuite: prune DOS drive letter in test outputs

Andreas Schwab schwab@suse.de
Wed Feb 22 15:42:50 GMT 2023


On Feb 22 2023, Clément Chigot via Binutils wrote:

> +	regsub -all "(^|\n)\[\[:alpha:\]\]:(/|\)" $output "\\1\\2" output

If you want to match a backslash, you need to double it, and double it
again to please the double quote syntax.  If you fear the leaning
toothpick syndrom, change the quoting of the regexp by using {} instead
of "".  Note that Tcl regexps support \n as an escape sequence for
newline.

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


More information about the Binutils mailing list