Skip to contentSkip to conversation

build: avoid bashism in configure

PATCH Applied Jan Palus 2 participants 3 messages Dec 5, 2025 – Dec 6, 2025 netfilter

lore
Share & tools
lore

Jan Palus

author
#0 lore raw

PATCH 1/1 build: avoid bashism in configure

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index 6825474b..dd172e88 100644
@@ -157,7 +157,7 @@ AC_CONFIG_COMMANDS([nftversion.h], [
 	echo "	${STABLE_RELEASE}"
 	echo "};"
 	echo "static char nftbuildstamp[[]] = {"
-	for ((i = 56; i >= 0; i-= 8)); do
+	for i in `seq 56 -8 0`; do
 		echo "	((uint64_t)MAKE_STAMP >> $i) & 0xff,"
 	done
 	echo "};"
Signature · 1 line
2.52.0
author
#1 lore raw

Sorry I've missed to indicate in subject it's a patch for nftables.

Quoted 21 lines · Jan Palus
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index 6825474b..dd172e88 100644
@@ -157,7 +157,7 @@ AC_CONFIG_COMMANDS([nftversion.h], [
 	echo "	${STABLE_RELEASE}"
 	echo "};"
 	echo "static char nftbuildstamp[[]] = {"
-	for ((i = 56; i >= 0; i-= 8)); do
+	for i in `seq 56 -8 0`; do
 		echo "	((uint64_t)MAKE_STAMP >> $i) & 0xff,"
 	done
 	echo "};"
Signature · 1 line
2.52.0