From 2c739c80094c44776d41768475065fe4a6071308 Mon Sep 17 00:00:00 2001 From: Eirikr Hinngart <151315375+Oichkatzelesfrettschen@users.noreply.github.com> Date: Thu, 29 May 2025 19:06:58 -0700 Subject: [PATCH] build.sh: drop NetBSD version logic --- build.sh | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/build.sh b/build.sh index d8bde3480..2ed691414 100755 --- a/build.sh +++ b/build.sh @@ -85,8 +85,8 @@ fi # Does the shell support the "local" keyword for variables in functions? # -# Local variables are not required by SUSv3, but some scripts run during -# the NetBSD build use them. +# Local variables are not required by SUSv3, but some scripts used during +# the build rely on them. # # ksh93 fails this test; it uses an incompatible syntax involving the # keywords 'function' and 'typeset'. @@ -158,7 +158,7 @@ fi # Does the shell support $(...) command substitution with # unbalanced parentheses? # -# Some shells known to fail this test are: NetBSD /bin/ksh (as of 2009-12), +# Some shells known to fail this test are: /bin/ksh (as of 2009-12), # bash-3.1, pdksh-5.2.14, zsh-4.2.7 in "emulate sh" mode. # if test -z "$errmsg"; then @@ -166,8 +166,8 @@ if test -z "$errmsg"; then eval 'var=$(case x in x) echo abc;; esac); test x"$var" = x"abc"' ) >/dev/null 2>&1 then - # XXX: This test is ignored because so many shells fail it; instead, - # the NetBSD build avoids using the problematic construct. + # XXX: This test is ignored because so many shells fail it; instead, + # this build script avoids using the problematic construct. : ignore 'Shell does not support "$(...)" with unbalanced ")".' fi fi @@ -236,8 +236,8 @@ EOF cat <