]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: port speedgen to FreeBSD 15
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Jul 2025 07:26:40 +0000 (00:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:40 +0000 (17:12 -0700)
* src/speedgen: Avoid ‘trap 'command' ERR’, as ERR
does not conform to POSIX and does not work in
FreeBSD 15 sh.

src/speedgen

index a4af8c8e243f4f8dea1f9e7fd872f43bb3e9c3e5..478007dbe6caee489ea9597a95662ffbf2f92b14 100755 (executable)
@@ -11,7 +11,7 @@ fi
 s='[[:space:]]'                        # For brevity's sake
 
 trap "rm -f '$tmp'" EXIT
-trap "rm -f '$tmp' '$out'" ERR HUP INT QUIT TERM
+trap "rm -f '$tmp' '$out'" HUP INT QUIT TERM
 
 # Fallback list of speeds that are always tested for.
 #