/bin/sh may not include a line number in its error messages, fix the
filtering when it does not.

Signed-off-by: Jean Delvare <[email protected]>
---
 test/run |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/test/run
+++ b/test/run
@@ -185,7 +185,7 @@ sub exec_test($$) {
                while (<IN>) {
                        #print "< $_";
                        if ($needs_shell) {
-                               s#^/bin/sh: line \d+: ##;
+                               s#^/bin/sh: (?:line \d+: )?##;
                        }
                        push @$result, $_;
                }
-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to