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

Jilles Tjoelker jilles at FreeBSD.org
Sat Apr 8 21:58:01 UTC 2017


Author: jilles
Date: Sat Apr  8 21:57:59 2017
New Revision: 316646
URL: https://svnweb.freebsd.org/changeset/base/316646

Log:
  sh: Add test for unaliasing an alias that is currently in use.
  
  This already works correctly.

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

Modified: head/bin/sh/tests/parser/Makefile
==============================================================================
--- head/bin/sh/tests/parser/Makefile	Sat Apr  8 16:14:30 2017	(r316645)
+++ head/bin/sh/tests/parser/Makefile	Sat Apr  8 21:57:59 2017	(r316646)
@@ -22,6 +22,7 @@ ${PACKAGE}FILES+=	alias12.0
 ${PACKAGE}FILES+=	alias13.0
 ${PACKAGE}FILES+=	alias14.0
 ${PACKAGE}FILES+=	alias15.0 alias15.0.stdout
+${PACKAGE}FILES+=	alias16.0
 ${PACKAGE}FILES+=	and-pipe-not.0
 ${PACKAGE}FILES+=	case1.0
 ${PACKAGE}FILES+=	case2.0

Added: head/bin/sh/tests/parser/alias16.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias16.0	Sat Apr  8 21:57:59 2017	(r316646)
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+v=1
+alias a='unalias a
+v=2'
+eval a
+[ "$v" = 2 ]


More information about the svn-src-head mailing list