diff options
Diffstat (limited to 'Test/A06assign.ztst')
-rw-r--r-- | Test/A06assign.ztst | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index 1e3d2ede9..da4e3b0fe 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -437,8 +437,7 @@ typeset -p i n x f) 0:GLOB_ASSIGN with numeric types >typeset -i i=0 ->typeset -a n ->n=( tmpfile1 tmpfile2 ) +>typeset -a n=( tmpfile1 tmpfile2 ) >typeset x=tmpfile2 >typeset -E f=4.000000000e+00 @@ -478,3 +477,15 @@ >first second >first >second + + typeset -aU unique_array=(first second) + unique_array[1]=second + print $unique_array +0:assignment to unique array +>second + + typeset -a array=(first) + array[1,3]=(FIRST) + print $array +0:slice beyond length of array +>FIRST |