Parallel Array Alignment Pattern When modifying bash scripts that use parallel arrays (e.g., and ), ensure new entries are appended to both arrays at matching indices. The loop that consumes these arrays typically iterates by index: . Before adding an entry, verify the current array length is identical across all parallel arrays. Add your new element to each array at the same position to prevent off-by-one misalignment that breaks the label-path relationship. ---