diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2014-11-28 13:30:22 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2014-11-28 13:30:22 -0800 |
commit | 49d6aace41f5fe47abfaa87d25c42dbdb84dfb88 (patch) | |
tree | 9628c722c2fd505b081c5e61bdb448bef172b5f9 /Test | |
parent | 389954beec04f3019efa759ce92a4af85d24924e (diff) | |
download | zsh-49d6aace41f5fe47abfaa87d25c42dbdb84dfb88.tar.gz zsh-49d6aace41f5fe47abfaa87d25c42dbdb84dfb88.tar.xz zsh-49d6aace41f5fe47abfaa87d25c42dbdb84dfb88.zip |
33816, 33819: GLOB_ASSIGN changes integer and floating type variables to string scalars
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A06assign.ztst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index 9a0a4f0cc..3c9ea0837 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -1,5 +1,10 @@ # Tests of parameter assignments +%prep + mkdir assign.tmp && cd assign.tmp + + touch tmpfile1 tmpfile2 + %test typeset -A assoc @@ -413,3 +418,18 @@ >world >worldliness >world + + integer i n x + float f + setopt globassign + i=tmpfile1 + n=tmp* + x=*2 + f=2+2 + typeset -p i n x f +0:GLOB_ASSIGN with numeric types +>typeset -i i=0 +>typeset -a n +>n=(tmpfile1 tmpfile2) +>typeset x=tmpfile2 +>typeset -E f=4.000000000e+00 |