diff options
author | Bart Schaefer <schaefer@ipost.com> | 2020-12-27 14:36:35 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@ipost.com> | 2021-04-10 14:12:29 -0700 |
commit | d649bf78dc3096d6ca0c705257a928b1acce3b82 (patch) | |
tree | 948d620a97dd7130e40cb6067d0063ff664499ca /Test/E01options.ztst | |
parent | 2eb9289d1277bf71b1b9dea2addbddd36b61f276 (diff) | |
download | zsh-d649bf78dc3096d6ca0c705257a928b1acce3b82.tar.gz zsh-d649bf78dc3096d6ca0c705257a928b1acce3b82.tar.xz zsh-d649bf78dc3096d6ca0c705257a928b1acce3b82.zip |
Fix ${(t)var} output, add comparative test cases
Diffstat (limited to 'Test/E01options.ztst')
-rw-r--r-- | Test/E01options.ztst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst index 415f46cd7..72749e6ab 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -1451,3 +1451,18 @@ F:If this test fails at the first unsetopt, refer to P01privileged.ztst. 0q:RM_STAR_SILENT *>zsh: sure you want to delete all 15 files in ${PWD:h}/options.tmp \[yn\]\? ${BEL}(|n) *>zsh: sure you want to delete (all <->|more than <->) files in / \[yn\]\? ${BEL}(|n) + + () { + local var + print ${(t)var} + } +0:(t) returns correct type +>scalar-local + + () { + readonly var + typeset -p var + } +0:readonly with typeset -p +F:compare E03posix.ztst +>typeset -r var='' |