diff options
author | jilles <jilles@FreeBSD.org> | 2010-10-24 16:55:17 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-10-24 16:55:17 +0000 |
commit | dfb434120d3ba49a9baa9b964bbca52885f58614 (patch) | |
tree | f75aee59ccc6c7a67eea9d2eec25974a5f8ef6ff /tools | |
parent | 41dcd4566c627593cdaa04a32255183275a4ea8a (diff) | |
download | FreeBSD-src-dfb434120d3ba49a9baa9b964bbca52885f58614.zip FreeBSD-src-dfb434120d3ba49a9baa9b964bbca52885f58614.tar.gz |
sh: Add some testcases for alias expansion.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/parser/alias1.0 | 5 | ||||
-rw-r--r-- | tools/regression/bin/sh/parser/alias2.0 | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/parser/alias1.0 b/tools/regression/bin/sh/parser/alias1.0 new file mode 100644 index 0000000..75dd9ab --- /dev/null +++ b/tools/regression/bin/sh/parser/alias1.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +alias alias0=exit +eval 'alias0 0' +exit 1 diff --git a/tools/regression/bin/sh/parser/alias2.0 b/tools/regression/bin/sh/parser/alias2.0 new file mode 100644 index 0000000..ae99b8a --- /dev/null +++ b/tools/regression/bin/sh/parser/alias2.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +alias alias0=exit +x=alias0 +eval 'case $x in alias0) exit 0;; esac' +exit 1 |