Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Help with korn shell in copying arrays

493291Feb 23 2006 — edited Feb 23 2006
I have to copy an array to a temp variable and back after doing some functions. I am trying to see if it is possible to do without while loops.My closest try was

set -A temp ${THE_ARRAY[*]}

# restore array after some actions
set -A THE_ARRAY ${temp[*]}

The problem with above is that, the new restored array starts from 0 (subscript), instead of 1. This is very bad for my rest of the script, does anyone know a solution to this problem
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2006
Added on Feb 23 2006
1 comment
506 views