3 Replies Latest reply on Feb 25, 2011 3:00 PM by Jeff Orndorff

    NSH array variables

      The following script example works as expected in a bash shell, but when executed when using nsh as the shell it errors with "no matches found: network[0]".





      while read network[${i}] mask[${i}] zone[${i}]


               echo ${network[$i]}

               i=`expr $i + 1`

      done << __EOF__ 8 zone1 16 zone2 24 zone3 24 zone4



      Could anyone point me towards documentation regarding variable usage with NSH (particularly array usage and substring extraction)?


      Thanks in advance.