Roland Mainz wrote: > Erm... without testing I guess you hit filename globbing in this case. > You create a file "list0" which matches the shell pattern "list[0]" and > therefore the 2nd read will hit a different name as array name. > There are two fixes: > a) Use $ set -o noglob # to disable filename globbing > b) Use quotes around variable names which access array elements, e.g. $ > echo foo | read 'list[0]' # in the example above.
Excellent, that did it. Seems like noglob is a requirement for any heavy array consumer (I couldn't imagine escaping all mine). Thanks! Dave
