Package: devscripts Version: 2.11.1 Severity: wishlist Hi folks,
in #638706 I suspected qa.debian.org from not supporting \1 style backrefs in watch files, while uscan did support them. Giovanni helped me see that uscan doesn't actually support them at all, I just hadn't done the right kind of testing. I now understand that \1 style backrefs are not supported and since perl recommends not using them, support for them shouldn't be implemented either (IMHO). However, to prevent further confusion, please find below a patch to the uscan manpage documenting this lack of support. Gr. Matthijs diff --git a/scripts/uscan.1 b/scripts/uscan.1 index 1e240b7..c2b81de 100644 --- a/scripts/uscan.1 +++ b/scripts/uscan.1 @@ -246,6 +246,11 @@ this should not be a problem. operation is used, only the '\fBg\fR', '\fBi\fR' and '\fBx\fR' flags are available and \fIrule\fR may not contain any expressions which have the potential to execute code (i.e. the (?{}) and (??{}) constructs are not supported). + +If the '\fBs\fR' operation is used, the replacement can contain +backreferences to expressions within parenthesis is the matching regexp, +like `\fBs/-alpha(\\d*)/.a$1/\fR'. These backreferences must use the +`\fB$1\fR' syntax, the `\fB\\1\fR' syntax is not supported. .TP \fBdversionmangle=\fIrules\fR This is used to mangle the Debian version number of the currently -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org