Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2020 21:59:22 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360992 - head/bin/sh/tests/parser
Message-ID:  <202005122159.04CLxMZZ049210@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005122159.04CLxMZZ049210>