From 03e55809f472148c982b98601cea0c03659d3865 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 25 Jan 2014 14:59:08 +0000 Subject: [PATCH] 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. --- bin/sh/tests/parser/Makefile | 2 ++ bin/sh/tests/parser/alias12.0 | 6 ++++++ bin/sh/tests/parser/alias13.0 | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 bin/sh/tests/parser/alias12.0 create mode 100644 bin/sh/tests/parser/alias13.0 diff --git a/bin/sh/tests/parser/Makefile b/bin/sh/tests/parser/Makefile index 10da71646b5..6803de359ce 100644 --- a/bin/sh/tests/parser/Makefile +++ b/bin/sh/tests/parser/Makefile @@ -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 diff --git a/bin/sh/tests/parser/alias12.0 b/bin/sh/tests/parser/alias12.0 new file mode 100644 index 00000000000..2e4379155d4 --- /dev/null +++ b/bin/sh/tests/parser/alias12.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +unalias -a +alias alias0=command +alias true='echo bad' +eval 'alias0 true' diff --git a/bin/sh/tests/parser/alias13.0 b/bin/sh/tests/parser/alias13.0 new file mode 100644 index 00000000000..53b949dc23e --- /dev/null +++ b/bin/sh/tests/parser/alias13.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +unalias -a +alias command=command +alias true='echo bad' +eval 'command true' -- 2.45.2