Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 14:59:08 +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: r261160 - head/bin/sh/tests/parser
Message-ID:  <201401251459.s0PEx8Z4054611@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Sat Jan 25 14:59:08 2014
New Revision: 261160
URL: http://svnweb.freebsd.org/changeset/base/261160

Log:
  sh: Add tests for alias names after another alias.
  
  Since the first alias's value does not end with a blank, the next word
  should not be checked for aliases.

Added:
  head/bin/sh/tests/parser/alias12.0   (contents, props changed)
  head/bin/sh/tests/parser/alias13.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 Jan 25 14:02:02 2014	(r261159)
+++ head/bin/sh/tests/parser/Makefile	Sat Jan 25 14:59:08 2014	(r261160)
@@ -16,6 +16,8 @@ FILES+=		alias8.0
 FILES+=		alias9.0
 FILES+=		alias10.0
 FILES+=		alias11.0
+FILES+=		alias12.0
+FILES+=		alias13.0
 FILES+=		and-pipe-not.0
 FILES+=		case1.0
 FILES+=		case2.0

Added: head/bin/sh/tests/parser/alias12.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias12.0	Sat Jan 25 14:59:08 2014	(r261160)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+unalias -a
+alias alias0=command
+alias true='echo bad'
+eval 'alias0 true'

Added: head/bin/sh/tests/parser/alias13.0
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/bin/sh/tests/parser/alias13.0	Sat Jan 25 14:59:08 2014	(r261160)
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+unalias -a
+alias command=command
+alias true='echo bad'
+eval 'command true'



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