Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2017 21:57:59 +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: r316646 - head/bin/sh/tests/parser
Message-ID:  <201704082157.v38LvxSh075424@repo.freebsd.org>

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



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