From f16aa3a7ff1ca0414aea2598f6b875568f9c70f3 Mon Sep 17 00:00:00 2001 From: jilles Date: Sat, 25 Jan 2014 14:59:08 +0000 Subject: 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 (limited to 'bin') diff --git a/bin/sh/tests/parser/Makefile b/bin/sh/tests/parser/Makefile index 10da716..6803de3 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 0000000..2e43791 --- /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 0000000..53b949d --- /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' -- cgit v1.1