]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
tests: hash:net.t: prefer tail -n
authorFlorian Westphal <fw@strlen.de>
Thu, 23 Jul 2026 10:35:01 +0000 (12:35 +0200)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Wed, 29 Jul 2026 15:04:14 +0000 (17:04 +0200)
seen on fedora 44:
 tail: cannot open '+2' for reading: No such file or directory

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
tests/hash:net.t

index 4f88327684a4280d29a6b86fbd573c719ab0090b..73e36b5f80abcc724566108bf5405c714da2fcfb 100644 (file)
@@ -61,7 +61,7 @@
 # List set and check the number of elements
 0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 43520
 # Stress test del with range notation
-0 ./netgen.sh | tail +2|sed 's/^a/d/' | ipset restore
+0 ./netgen.sh | tail -n +2 | sed 's/^a/d/' | ipset restore
 # List set and check the number of elements
 0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 0
 # Destroy test set