Blob Blame History Raw
From 691154320a1a4c77805a57d298a0b8d6e823eb29 Mon Sep 17 00:00:00 2001
From: Petr Mensik <pemensik@redhat.com>
Date: Mon, 18 Jan 2021 10:39:46 +0100
Subject: [PATCH] Support bash 5.1

New bash adds to output line 1: after shell name. That made var-op-shell
unit test fail under bash 5.1.0. Allow it to pass by cutting line X away
from var-op-shell.
---
 unit-tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/unit-tests/Makefile b/unit-tests/Makefile
index 87ed4ef..626ba44 100644
--- a/unit-tests/Makefile
+++ b/unit-tests/Makefile
@@ -507,7 +507,7 @@ SED_CMDS.suff-main+=		${STD_SED_CMDS.dg1}
 SED_CMDS.suff-main-several+=	${STD_SED_CMDS.dg1}
 SED_CMDS.suff-transform-debug+=	${STD_SED_CMDS.dg1}
 SED_CMDS.var-op-shell+=	\
-	-e 's,^${.SHELL:T}: [ 0-9:]*,,' \
+	-e 's,^${.SHELL:T}: \(line \)\?[ 0-9:]*,,' \
 	-e 's,^${.SHELL:T}: ,,' \
 	-e '/command/s,No such.*,not found,'
 SED_CMDS.vardebug+=	-e 's,${.SHELL},</path/to/shell>,'
-- 
2.26.2