Hali, sajnos most épp nem vagyok hibakeresős üzemmódban, de elsőre az 'unset list' helyett 'local list; declare -a list'-et próbálnék