For some reason the initial posting is missing the following info: The array is two dimensional so it should read
r_user[jonest][9] and r_user[qazwsx][8] Sorry for the possible confusion, Marco -----Original Message----- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of fo...@cfengine.com Sent: Monday, April 19, 2010 3:34 PM To: help-cfengine@cfengine.org Subject: Cfengine Help: hash address - Help Forum: Cfengine Help Subject: hash address - Help Author: mlebel Link to topic: https://cfengine.com/forum/read.php?3,16921,16921#msg-16921 Hello all, I have a script that does a call to readstringarray which is causing me a lot of grief. After a day of looking at debugging data I believe I found the source of my problem but need someone to confirm that my understanding is correct and if it is the case what are my work around option(s). When I run the script with -d0 flag I have found the following entries (using grep): Added Variable r_user[9] at hash address 1394 in scope do_user_accounts with value (omitted) Added Variable r_user[9] at hash address 1394 in scope do_user_accounts with value (omitted) Added Variable r_user[8] at hash address 1394 in scope do_user_accounts with value (omitted) Added Variable r_user[8] at hash address 1394 in scope do_user_accounts with value (omitted) Added Variable r_user[9] at hash address 1394 in scope do_user_accounts with value (omitted) Added Variable r_user[8] at hash address 1394 in scope do_user_accounts with value (omitted) The qazwsx entry is loaded after the entry for jonest. To me these hash entry must not conflict simply because of my observation since for each entry that conflicts the value are undefined. So in this particular example the value for r_user[9] is undefined and the entry for r_user[8] is defined. That being said in the debug data I do see that the array value for jonest are assigned and my assumption is that it is blown away by the assignement of qazwsx done later on. Thanks for your help, Marco _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine