diff options
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/bin/sh/builtins/alias3.0 | 12 | ||||
-rw-r--r-- | tools/regression/bin/sh/builtins/alias3.0.stdout | 4 | ||||
-rw-r--r-- | tools/regression/bin/sh/parser/alias10.0 | 5 | ||||
-rw-r--r-- | tools/regression/bin/sh/parser/alias9.0 | 6 |
4 files changed, 27 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/builtins/alias3.0 b/tools/regression/bin/sh/builtins/alias3.0 new file mode 100644 index 0000000..fe65e31f --- /dev/null +++ b/tools/regression/bin/sh/builtins/alias3.0 @@ -0,0 +1,12 @@ +# $FreeBSD$ +set -e + +unalias -a +alias foo=bar +alias bar= +alias quux="1 2 3" +alias foo=bar +alias bar= +alias quux="1 2 3" +alias +alias foo diff --git a/tools/regression/bin/sh/builtins/alias3.0.stdout b/tools/regression/bin/sh/builtins/alias3.0.stdout new file mode 100644 index 0000000..52efaf0 --- /dev/null +++ b/tools/regression/bin/sh/builtins/alias3.0.stdout @@ -0,0 +1,4 @@ +bar='' +foo=bar +quux='1 2 3' +foo=bar diff --git a/tools/regression/bin/sh/parser/alias10.0 b/tools/regression/bin/sh/parser/alias10.0 new file mode 100644 index 0000000..264f5c5 --- /dev/null +++ b/tools/regression/bin/sh/parser/alias10.0 @@ -0,0 +1,5 @@ +# $FreeBSD$ + +alias echo='echo' +alias echo='echo' +[ "`eval echo b`" = b ] diff --git a/tools/regression/bin/sh/parser/alias9.0 b/tools/regression/bin/sh/parser/alias9.0 new file mode 100644 index 0000000..6bd8808 --- /dev/null +++ b/tools/regression/bin/sh/parser/alias9.0 @@ -0,0 +1,6 @@ +# $FreeBSD$ + +alias alias0=: +alias alias0=exit +eval 'alias0 0' +exit 1 |