Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 598480
Collapse All | Expand All

(-)a/libs/config.bash.in (-4 / +5 lines)
Lines 57-65 store_config() { Link Here
57
		# parse the names of all settings in the file
57
		# parse the names of all settings in the file
58
		local ifs_save=${IFS} IFS=$'\n'
58
		local ifs_save=${IFS} IFS=$'\n'
59
		for line in ${content} ; do
59
		for line in ${content} ; do
60
			[[ ${line/=/} != ${line} ]] || continue
60
			line=${line##*([[:space:]])}
61
			line=${line/=*/}
61
			[[ ${line} != "#"* && ${line} == *=* ]] || continue
62
			local ${line}=""
62
			line=${line%%=*}
63
			# assignment will fail if ${line} is not a valid identifier
64
			local ${line}="" || continue
63
			vars=(${vars[@]} ${line})
65
			vars=(${vars[@]} ${line})
64
		done
66
		done
65
		IFS=${ifs_save}
67
		IFS=${ifs_save}
66
- 

Return to bug 598480