pkgsrc-Changes archive

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

CVS commit: pkgsrc/regress/tools-platform



Module Name:    pkgsrc
Committed By:   rillig
Date:           Thu May 21 13:33:36 UTC 2020

Modified Files:
        pkgsrc/regress/tools-platform: sh.test

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/regress/tools-platform/sh.test

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/regress/tools-platform/sh.test
diff -u pkgsrc/regress/tools-platform/sh.test:1.3 pkgsrc/regress/tools-platform/sh.test:1.4
--- pkgsrc/regress/tools-platform/sh.test:1.3   Sun May  3 07:38:50 2020
+++ pkgsrc/regress/tools-platform/sh.test       Thu May 21 13:33:35 2020
@@ -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 @@ case $MACHINE_PLATFORM in
        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