parse_info() { while read; do [[ -z ${REPLY} ]] || local ${REPLY%%=*}=${REPLY##*=} done < ${INFO_MPLAYER} INPUT_A_CODEC=${ID_AUDIO_CODEC} #etc... }