about summary refs log tree commit diff
path: root/Test/E03posix.ztst
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2020-12-27 14:36:35 -0800
committerBart Schaefer <schaefer@ipost.com>2021-04-10 14:12:29 -0700
commitd649bf78dc3096d6ca0c705257a928b1acce3b82 (patch)
tree948d620a97dd7130e40cb6067d0063ff664499ca /Test/E03posix.ztst
parent2eb9289d1277bf71b1b9dea2addbddd36b61f276 (diff)
downloadzsh-d649bf78dc3096d6ca0c705257a928b1acce3b82.tar.gz
zsh-d649bf78dc3096d6ca0c705257a928b1acce3b82.tar.xz
zsh-d649bf78dc3096d6ca0c705257a928b1acce3b82.zip
Fix ${(t)var} output, add comparative test cases
Diffstat (limited to 'Test/E03posix.ztst')
-rw-r--r--Test/E03posix.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/E03posix.ztst b/Test/E03posix.ztst
index 5e6eddeba..c59ca4f6e 100644
--- a/Test/E03posix.ztst
+++ b/Test/E03posix.ztst
@@ -103,3 +103,17 @@
 >arg1 arg2
 >noktarg1
 >0 0
+
+  () {
+    local var
+    print ${(t)var}
+  }
+0:(t) returns correct type
+>scalar-local
+
+  () {
+    readonly var
+    typeset -p var
+  }
+0:readonly with typeset -p
+>typeset -g -r var