Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/regress/tools-platform regress/tools-platform: add tes...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/05a0b3cf8455
branches:  trunk
changeset: 432352:05a0b3cf8455
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu May 21 13:33:35 2020 +0000

description:
regress/tools-platform: add test for "$@" and ksh

diffstat:

 regress/tools-platform/sh.test |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 0a63feb00cf1 -r 05a0b3cf8455 regress/tools-platform/sh.test
--- a/regress/tools-platform/sh.test    Thu May 21 13:31:59 2020 +0000
+++ b/regress/tools-platform/sh.test    Thu May 21 13:33:35 2020 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $NetBSD: sh.test,v 1.3 2020/05/03 07:38:50 rillig Exp $
+# $NetBSD: sh.test,v 1.4 2020/05/21 13:33:35 rillig Exp $
 #
 # Tests for the shell that is available as ${SH} in Makefiles.
 #
@@ -58,3 +58,9 @@
        assert_that "${line%%/\**}" --equals '#define bindir "/usr/bin" '
        ;;
 esac
+
+# Make sure that the shell can process empty arguments.
+#
+# For example, /bin/ksh on NetBSD 8 cannot, it complains with:
+#   ksh: @: parameter not set
+sh -eu -c ': "$@"'



Home | Main Index | Thread Index | Old Index