svn commit: r360992 - head/bin/sh/tests/parser

Jilles Tjoelker jilles at FreeBSD.org
Tue May 12 21:59:23 UTC 2020


Author: jilles
Date: Tue May 12 21:59:21 2020
New Revision: 360992
URL: https://svnweb.freebsd.org/changeset/base/360992

Log:
  sh/tests: Test some obscure cases with aliasing keywords

Added:
  head/bin/sh/tests/parser/alias19.0   (contents, props changed)
  head/bin/sh/tests/parser/alias19.0.stdout   (contents, props changed)
  head/bin/sh/tests/parser/alias20.0   (contents, props changed)
  head/bin/sh/tests/parser/alias20.0.stdout   (contents, props changed)
Modified:
  head/bin/sh/tests/parser/Makefile

Modified: head/bin/sh/tests/parser/Makefile
==============================================================================
--- head/bin/sh/tests/parser/Makefile	Tue May 12 21:51:56 2020	(r360991)
+++ head/bin/sh/tests/parser/Makefile	Tue May 12 21:59:21 2020	(r360992)
@@ -25,6 +25,8 @@ ${PACKAGE}FILES+=	alias15.0 alias15.0.stdout
 ${PACKAGE}FILES+=	alias16.0
 ${PACKAGE}FILES+=	alias17.0
 ${PACKAGE}FILES+=	alias18.0
+${PACKAGE}FILES+=	alias19.0 alias19.0.stdout
+${PACKAGE}FILES+=	alias20.0 alias20.0.stdout
 ${PACKAGE}FILES+=	and-pipe-not.0
 ${PACKAGE}FILES+=	case1.0
 ${PACKAGE}FILES+=	case2.0

Added: head/bin/sh/tests/parser/alias19.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias19.0	Tue May 12 21:59:21 2020	(r360992)
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+alias begin={ end=}
+begin
+cat <<EOF
+$(echo ok)
+EOF
+end

Added: head/bin/sh/tests/parser/alias19.0.stdout
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias19.0.stdout	Tue May 12 21:59:21 2020	(r360992)
@@ -0,0 +1 @@
+ok

Added: head/bin/sh/tests/parser/alias20.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias20.0	Tue May 12 21:59:21 2020	(r360992)
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+alias begin={ end=}
+: <<EOF &&
+$(echo bad1)
+EOF
+begin
+echo ok
+end

Added: head/bin/sh/tests/parser/alias20.0.stdout
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias20.0.stdout	Tue May 12 21:59:21 2020	(r360992)
@@ -0,0 +1 @@
+ok


More information about the svn-src-all mailing list