OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var_test.c versions 1.18 and 1.19
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var_test.c 1.18 -> 1.19

--- var_test.c   2001/12/08 15:31:06     1.18
+++ var_test.c   2001/12/08 16:02:15     1.19
@@ -74,6 +74,8 @@
         { "ARRAY",  1, "entry1" },
         { "ARRAY",  2, "entry2" },
         { "ARRAY",  3, "entry3" },
+        { "NUMBER", 0, "+2" },
+        { "NUMEXP", 0, "((16)%5)" },
         { NULL,     0, NULL }
         };
 
@@ -135,7 +137,11 @@
         { "${ARRAY[(5+(3+4)*2)/9]}",      "entry2",                                        },
         { "${ARRAY[+1--2]}",              "entry3"                                         },
         { "${ARRAY[-1]}",                 "4"                                              },
-        { "${HOME[-1]}",                  "22"                                             }
+        { "${HOME[-1]}",                  "22"                                             },
+        { "${ARRAY[$NUMBER]}",            "entry2"                                         },
+        { "${ARRAY[$NUMEXP]}",            "entry1"                                         },
+        { "${ARRAY[$NUMEXP-1]}",          "entry0"                                         },
+        { "${ARRAY[${ARRAY[-1]}-1]}",     "entry3"                                         }
     };
     char *tmp;
     size_t tmp_len;

CVSTrac 2.0.1