All pastes #60440 Raw Edit

wtf

public shellscript v1 · immutable
#60440 ·published 2006-05-31 23:22 UTC
rendered paste body
declare -a geoInfo # declare an arraygeoInfo=("${geoInfo[@]}" "a" "b")cat /tmp/loc.txt |while read line; do   geoInfo=("${geoInfo[@]}" "c" "d")  echo "(${line})" # confirms ${line} is as expected. fine. *This happens TWICE*donegeoInfo=("${geoInfo[@]}" "e" "f")echo "${geoInfo[@]}" # Output is "a b e f". What happened to "c d" ?!?!