From 506907af36476fb1986ff1b4240c5777979560ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20My=C5=A1iak?= Date: Wed, 3 Jul 2024 16:56:13 +0200 Subject: [PATCH 1/2] Fix regex in awk It should be escaped. On some platform it's interpreting as interval --- bin/list-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/list-all b/bin/list-all index 3c5c3e0..a867dbf 100755 --- a/bin/list-all +++ b/bin/list-all @@ -10,7 +10,7 @@ sort_versions() { versions=$( git ls-remote --tags https://github.com/php/php-src.git | grep 'php-' | - awk '!/({})/ {print $2}' | + awk '!/(\{\})/ {print $2}' | sed 's/refs\/tags\/php-//' | sort_versions | xargs From 66d62c99228244c77754e6b78167a25014728718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20My=C5=A1iak?= Date: Mon, 9 Sep 2024 22:11:29 +0200 Subject: [PATCH 2/2] Update regex to match everything inside {} --- bin/list-all | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/list-all b/bin/list-all index a867dbf..01e8c8b 100755 --- a/bin/list-all +++ b/bin/list-all @@ -10,7 +10,7 @@ sort_versions() { versions=$( git ls-remote --tags https://github.com/php/php-src.git | grep 'php-' | - awk '!/(\{\})/ {print $2}' | + awk '!/(\{.*\})/ {print $2}' | sed 's/refs\/tags\/php-//' | sort_versions | xargs