[PATCH v2] testsuite: prune DOS drive letter in test outputs
Andreas Schwab
schwab@suse.de
Wed Feb 22 16:37:43 GMT 2023
On Feb 22 2023, Clément Chigot wrote:
> It seems that both are working.
> | $ cat ~/tmp/test.tcl
> | set output "C:\\home\\c"
> | regsub -all "(^|\n)\[\[:upper:\]\]:(/|\)" $output "\\1\\2" output
> | puts $output
> | regsub -all "(^|\n)\[\[:upper:\]\]:(/|\\\\)" $output "\\1\\2" output
> | puts $output
>
> | $ tclsh8.6 ~/tmp/test.tcl
> | \home\c
> | \home\c
The first regexp is equivalent to {(^|\n)[[:upper:]]:(/|)}, and the
second group matches the empty string.
--
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