summaryrefslogtreecommitdiff
path: root/bin/pdksh/tests
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pdksh/tests')
-rw-r--r--bin/pdksh/tests/regress.t19
-rw-r--r--bin/pdksh/tests/unclass1.t6
-rw-r--r--bin/pdksh/tests/version.t2
3 files changed, 23 insertions, 4 deletions
diff --git a/bin/pdksh/tests/regress.t b/bin/pdksh/tests/regress.t
index d78a02641de..218fc55249a 100644
--- a/bin/pdksh/tests/regress.t
+++ b/bin/pdksh/tests/regress.t
@@ -663,3 +663,22 @@ expected-stdout:
OPTARG=x, OPTIND=3, optc=?.
done
---
+
+name: regression-45
+description:
+ Parameter assignments with [] recognized correctly
+stdin:
+ FOO=*[12]
+ BAR=abc[
+ MORE=[abc]
+ JUNK=a[bc
+ echo "<$FOO>"
+ echo "<$BAR>"
+ echo "<$MORE>"
+ echo "<$JUNK>"
+expected-stdout:
+ <*[12]>
+ <abc[>
+ <[abc]>
+ <a[bc>
+---
diff --git a/bin/pdksh/tests/unclass1.t b/bin/pdksh/tests/unclass1.t
index 2e3e88791bf..55d4e58976f 100644
--- a/bin/pdksh/tests/unclass1.t
+++ b/bin/pdksh/tests/unclass1.t
@@ -49,7 +49,7 @@ name: xxx-exec-environment-1
description:
Check to see if exec sets it's environment correctly
stdin:
- FOO=bar exec printenv
+ FOO=bar exec env
expected-stdout-pattern:
/(^|.*\n)FOO=bar\n/
---
@@ -59,8 +59,8 @@ description:
Check to make sure exec doesn't change environment if a program
isn't exec-ed
stdin:
- printenv > bar1
- FOO=bar exec; printenv > bar2
+ env > bar1
+ FOO=bar exec; env > bar2
cmp -s bar1 bar2
---
diff --git a/bin/pdksh/tests/version.t b/bin/pdksh/tests/version.t
index 0ec6fbac7b5..e1b8127fcbc 100644
--- a/bin/pdksh/tests/version.t
+++ b/bin/pdksh/tests/version.t
@@ -4,5 +4,5 @@ description:
stdin:
echo $KSH_VERSION
expected-stdout:
- @(#)PD KSH v5.2.8 96/08/19
+ @(#)PD KSH v5.2.9 96/09/30
---